Skip to content
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

Merged
merged 3 commits into from Oct 30, 2021

Conversation

rgommers
Copy link
Member

See gh-14901 for details.

[skip azp]
[skip github]

@rgommers rgommers added scipy.stats maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Oct 29, 2021
@@ -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')
Copy link
Contributor

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
@tylerjereddy tylerjereddy added this to the 1.8.0 milestone Oct 29, 2021
@@ -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")
Copy link
Contributor

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 - ...

Copy link
Contributor

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
@tylerjereddy
Copy link
Contributor

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.

@tylerjereddy tylerjereddy merged commit 930bfc1 into scipy:master Oct 30, 2021
@rgommers rgommers deleted the macos-ci branch October 30, 2021 08:59
@rgommers
Copy link
Member Author

Thanks Tyler!

@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Nov 5, 2021
@tylerjereddy tylerjereddy modified the milestones: 1.8.0, 1.7.2 Nov 5, 2021
tylerjereddy added a commit to tylerjereddy/scipy that referenced this pull request Nov 5, 2021
)

* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants