@@ -1061,14 +1061,13 @@ def refimpl(_x, _min, _max):
1061
1061
)
1062
1062
1063
1063
1064
- if api_version >= "2022.12" :
1065
-
1066
- @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1067
- def test_conj (x ):
1068
- out = xp .conj (x )
1069
- ph .assert_dtype ("conj" , in_dtype = x .dtype , out_dtype = out .dtype )
1070
- ph .assert_shape ("conj" , out_shape = out .shape , expected = x .shape )
1071
- unary_assert_against_refimpl ("conj" , x , out , operator .methodcaller ("conjugate" ))
1064
+ @pytest .mark .min_version ("2022.12" )
1065
+ @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1066
+ def test_conj (x ):
1067
+ out = xp .conj (x )
1068
+ ph .assert_dtype ("conj" , in_dtype = x .dtype , out_dtype = out .dtype )
1069
+ ph .assert_shape ("conj" , out_shape = out .shape , expected = x .shape )
1070
+ unary_assert_against_refimpl ("conj" , x , out , operator .methodcaller ("conjugate" ))
1072
1071
1073
1072
1074
1073
@pytest .mark .min_version ("2023.12" )
@@ -1263,14 +1262,14 @@ def test_hypot(x1, x2):
1263
1262
binary_assert_against_refimpl ("hypot" , x1 , x2 , out , math .hypot )
1264
1263
1265
1264
1266
- if api_version >= "2022.12" :
1267
1265
1268
- @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1269
- def test_imag (x ):
1270
- out = xp .imag (x )
1271
- ph .assert_dtype ("imag" , in_dtype = x .dtype , out_dtype = out .dtype , expected = dh .dtype_components [x .dtype ])
1272
- ph .assert_shape ("imag" , out_shape = out .shape , expected = x .shape )
1273
- unary_assert_against_refimpl ("imag" , x , out , operator .attrgetter ("imag" ))
1266
+ @pytest .mark .min_version ("2022.12" )
1267
+ @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1268
+ def test_imag (x ):
1269
+ out = xp .imag (x )
1270
+ ph .assert_dtype ("imag" , in_dtype = x .dtype , out_dtype = out .dtype , expected = dh .dtype_components [x .dtype ])
1271
+ ph .assert_shape ("imag" , out_shape = out .shape , expected = x .shape )
1272
+ unary_assert_against_refimpl ("imag" , x , out , operator .attrgetter ("imag" ))
1274
1273
1275
1274
1276
1275
@given (hh .arrays (dtype = hh .numeric_dtypes , shape = hh .shapes ()))
@@ -1559,14 +1558,13 @@ def test_pow(ctx, data):
1559
1558
# Values testing pow is too finicky
1560
1559
1561
1560
1562
- if api_version >= "2022.12" :
1563
-
1564
- @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1565
- def test_real (x ):
1566
- out = xp .real (x )
1567
- ph .assert_dtype ("real" , in_dtype = x .dtype , out_dtype = out .dtype , expected = dh .dtype_components [x .dtype ])
1568
- ph .assert_shape ("real" , out_shape = out .shape , expected = x .shape )
1569
- unary_assert_against_refimpl ("real" , x , out , operator .attrgetter ("real" ))
1561
+ @pytest .mark .min_version ("2022.12" )
1562
+ @given (hh .arrays (dtype = hh .complex_dtypes , shape = hh .shapes ()))
1563
+ def test_real (x ):
1564
+ out = xp .real (x )
1565
+ ph .assert_dtype ("real" , in_dtype = x .dtype , out_dtype = out .dtype , expected = dh .dtype_components [x .dtype ])
1566
+ ph .assert_shape ("real" , out_shape = out .shape , expected = x .shape )
1567
+ unary_assert_against_refimpl ("real" , x , out , operator .attrgetter ("real" ))
1570
1568
1571
1569
1572
1570
@pytest .mark .skip (reason = "flaky" )
0 commit comments