@@ -48,14 +48,6 @@ def bad_arcsinh():
48
48
# The eps for float128 is 1-e33, so this is way bigger
49
49
return abs ((v1 / v2 ) - 1.0 ) > 1e-23
50
50
51
- if platform .machine () == 'aarch64' and bad_arcsinh ():
52
- skip_longcomplex_msg = ('Trig functions of np.longcomplex values known to be '
53
- 'inaccurate on aarch64 for some compilation '
54
- 'configurations, should be fixed by building on a '
55
- 'platform using glibc>2.17' )
56
- else :
57
- skip_longcomplex_msg = ''
58
-
59
51
60
52
class _FilterInvalids :
61
53
def setup (self ):
@@ -3440,13 +3432,14 @@ def check(x, rtol):
3440
3432
x_series = np .logspace (- 20 , - 3.001 , 200 )
3441
3433
x_basic = np .logspace (- 2.999 , 0 , 10 , endpoint = False )
3442
3434
3443
- if dtype is np .longcomplex :
3435
+ if glibc_older_than_2_17 and dtype is np .longcomplex :
3436
+ if (platform .machine () == 'aarch64' and bad_arcsinh ()):
3437
+ pytest .skip ("Trig functions of np.longcomplex values known "
3438
+ "to be inaccurate on aarch64 for some compilation "
3439
+ "configurations." )
3444
3440
# It's not guaranteed that the system-provided arc functions
3445
3441
# are accurate down to a few epsilons. (Eg. on Linux 64-bit)
3446
3442
# So, give more leeway for long complex tests here:
3447
- # Can use 2.1 for > Ubuntu LTS Trusty (2014), glibc = 2.19.
3448
- if skip_longcomplex_msg :
3449
- pytest .skip (skip_longcomplex_msg )
3450
3443
check (x_series , 50.0 * eps )
3451
3444
else :
3452
3445
check (x_series , 2.1 * eps )
0 commit comments