-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST: silence test failures on macOS for beta.ppf
overflow
#14938
Conversation
See scipygh-14901 for details. [skip azp] [skip github]
@@ -37,6 +37,10 @@ | |||
# python -OO strips docstrings | |||
DOCSTRINGS_STRIPPED = sys.flags.optimize > 1 | |||
|
|||
# Failing on macOS 11, Intel CPUs. See gh-14901 | |||
MACOS_INTEL = (sys.platform == 'darwin') and (platform.machine() == 'x86_64') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add import platform
above--let me see if I can push that in real quick
* add missing `platform` import
@@ -2879,6 +2886,7 @@ def test_issue_12796(self): | |||
res = stats.beta.cdf(inv, a, b) | |||
assert_allclose(res, 1 - alpha_2) | |||
|
|||
@pytest.mark.skipif(MACOS_INTEL, reason="Overflow, see gh-14901") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the third failing test was test_issue_12635
above, unless I'm misreading the diff
FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12635 - ...
FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794 - ...
FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12796 - ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and pushed that in--probably just some speedy copy-paste work.
* fix up the third skipped test to match what CI is complaining about
I'll go ahead and squash merge since the MacOS CI entries are now passing and my correction commits hardly need to be separated for this temporary bypass PR. |
Thanks Tyler! |
) * TST: silence test failures on macOS for `beta.ppf` overflow See scipygh-14901 for details. [skip azp] [skip github] Co-authored-by: Tyler Reddy <tyler.je.reddy@gmail.com>
See gh-14901 for details.
[skip azp]
[skip github]