Skip to content

Commit 50abcb3

Browse files
committed
TEST: Numpy changed longdouble str representations in 1.18
1 parent a80cb3c commit 50abcb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nibabel/tests/test_h5py_compat.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ def test_disabled_h5py_cases():
4040
# Verify that the root cause is present
4141
# If any tests fail, they will likely be these, so they may be
4242
# ill-advised...
43-
assert_equal(str(np.longdouble), str(np.float64))
43+
if LooseVersion(np.__version__) < '1.18':
44+
assert_equal(str(np.longdouble), str(np.float64))
45+
else:
46+
assert_not_equal(str(np.longdouble), str(np.float64))
4447
assert_not_equal(np.longdouble, np.float64)

0 commit comments

Comments
 (0)