File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ def get_glibc_version():
2828
2929
3030glibcver = get_glibc_version ()
31- glibc_newerthan_2_17 = pytest .mark .xfail (
32- glibcver != '0.0' and glibcver < '2.17' ,
33- reason = "Older glibc versions may not raise appropriate FP exceptions" )
31+ glibc_older_than_2_17 = (glibcver != '0.0' and glibcver < '2.17' )
3432
3533def on_powerpc ():
3634 """ True if we are running on a Power PC platform."""
@@ -1024,7 +1022,10 @@ def test_exp_values(self):
10241022
10251023 # Older version of glibc may not raise the correct FP exceptions
10261024 # See: https://github.com/numpy/numpy/issues/19192
1027- @glibc_newerthan_2_17
1025+ @pytest .mark .xfail (
1026+ glibc_older_than_2_17 ,
1027+ reason = "Older glibc versions may not raise appropriate FP exceptions"
1028+ )
10281029 def test_exp_exceptions (self ):
10291030 with np .errstate (over = 'raise' ):
10301031 assert_raises (FloatingPointError , np .exp , np .float32 (100. ))
You can’t perform that action at this time.
0 commit comments