Skip to content

TST: Ignore exp FP exceptions test for glibc ver < 2.17 #19209

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

Merged
merged 5 commits into from
Jun 12, 2021

Conversation

r-devulap
Copy link
Member

Fixes #19192

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jun 9, 2021
@charris charris added this to the 1.21.0 release milestone Jun 9, 2021
Copy link
Contributor

@h-vetinari h-vetinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those tests should not be skipped on windows, IMO

Edit: braino

Comment on lines 999 to 1001
# Older version of glibc may not raise the correct FP exceptions
# See: https://github.com/numpy/numpy/issues/19192
if (get_glibc_version() >= 2.17):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Older version of glibc may not raise the correct FP exceptions
# See: https://github.com/numpy/numpy/issues/19192
if (get_glibc_version() >= 2.17):
# Older version of glibc may not raise the correct FP exceptions
# See: https://github.com/numpy/numpy/issues/19192
# The check for ==0 is the fallback for non-glibc systems
if (get_glibc_version() >= 2.17 or get_glibc_version() == 0):

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, fixed it. Works on windows now.

@h-vetinari
Copy link
Contributor

Those tests should not be skipped on windows, IMO

Sorry, I forgot a pretty important word while looking at this in a rush this morning 😅
Thanks for tackling this @r-devulap!

@r-devulap
Copy link
Member Author

Those tests should not be skipped on windows, IMO

Sorry, I forgot a pretty important word while looking at this in a rush this morning 😅

hah, no problem, we've all got a lot of things going on ;)

Thanks for tackling this @r-devulap! #

of course :)

@charris charris merged commit b5cc1f8 into numpy:main Jun 12, 2021
@charris
Copy link
Member

charris commented Jun 12, 2021

Thanks @r-devulap .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test suite failure on non-AVX512 due to glibc (version-dependent) bug on f64 underflow
4 participants