We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b7a64 commit 445d544Copy full SHA for 445d544
quaddtype/tests/test_quaddtype.py
@@ -6,7 +6,7 @@
6
import numpy_quaddtype
7
from numpy_quaddtype import QuadPrecDType, QuadPrecision
8
9
-np_major, np_minor = np.__version__.split('.')[:2]
+np_major, np_minor = map(int, np.__version__.split('.')[:2])
10
11
def test_create_scalar_simple():
12
assert isinstance(QuadPrecision("12.0"), QuadPrecision)
@@ -77,7 +77,7 @@ def test_unsupported_astype(dtype):
77
np.array(QuadPrecision(1)).astype(dtype, casting="unsafe")
78
79
80
-@pytest.mark.skip(np_major <2 or (np_major == 2 and np_minor < 4))
+@pytest.mark.skip(np_major < 2 or (np_major == 2 and np_minor < 4))
81
def test_same_value_cast():
82
a = np.arange(30, dtype=np.float32)
83
# upcasting can never fail
0 commit comments