Skip to content

Commit 445d544

Browse files
committed
fix test
1 parent 36b7a64 commit 445d544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quaddtype/tests/test_quaddtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy_quaddtype
77
from numpy_quaddtype import QuadPrecDType, QuadPrecision
88

9-
np_major, np_minor = np.__version__.split('.')[:2]
9+
np_major, np_minor = map(int, np.__version__.split('.')[:2])
1010

1111
def test_create_scalar_simple():
1212
assert isinstance(QuadPrecision("12.0"), QuadPrecision)
@@ -77,7 +77,7 @@ def test_unsupported_astype(dtype):
7777
np.array(QuadPrecision(1)).astype(dtype, casting="unsafe")
7878

7979

80-
@pytest.mark.skip(np_major <2 or (np_major == 2 and np_minor < 4))
80+
@pytest.mark.skip(np_major < 2 or (np_major == 2 and np_minor < 4))
8181
def test_same_value_cast():
8282
a = np.arange(30, dtype=np.float32)
8383
# upcasting can never fail

0 commit comments

Comments
 (0)