Skip to content

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

Merged
charris merged 5 commits into
numpy:mainfrom
r-devulap:glibc-ver-2.17
Jun 12, 2021
Merged

charris merged 5 commits into
numpy:mainfrom
r-devulap:glibc-ver-2.17

Conversation

@r-devulap

Copy link
Copy Markdown
Member

Fixes #19192

Comment thread numpy/core/tests/test_umath.py Outdated
@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

@h-vetinari h-vetinari left a comment •

Copy link
Copy Markdown
Contributor

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 thread numpy/core/tests/test_umath.py
Comment thread numpy/core/tests/test_umath.py Outdated
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
Copy Markdown
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
Copy Markdown
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.

Comment thread numpy/core/tests/test_umath.py Outdated
@h-vetinari

Copy link
Copy Markdown
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
Copy Markdown
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 :)

Comment thread numpy/core/tests/test_umath.py
@charris
charris merged commit b5cc1f8 into numpy:main Jun 12, 2021
@charris

charris commented Jun 12, 2021

Copy link
Copy Markdown
Member

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