Skip to content

Commit 2dccadf

Browse files
authored
Merge pull request #858 from effigies/fix/h5py_numpy_hack
TEST: Numpy changed longdouble str representations in 1.18
2 parents a66c0b2 + fadfb45 commit 2dccadf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nibabel/tests/test_h5py_compat.py

Lines changed: 4 additions & 1 deletion
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)