Skip to content

Commit

Permalink
Merge pull request #858 from effigies/fix/h5py_numpy_hack
Browse files Browse the repository at this point in the history
TEST: Numpy changed longdouble str representations in 1.18
  • Loading branch information
effigies authored Jan 7, 2020
2 parents a66c0b2 + fadfb45 commit 2dccadf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nibabel/tests/test_h5py_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ def test_disabled_h5py_cases():
# Verify that the root cause is present
# If any tests fail, they will likely be these, so they may be
# ill-advised...
assert_equal(str(np.longdouble), str(np.float64))
if LooseVersion(np.__version__) < '1.18':
assert_equal(str(np.longdouble), str(np.float64))
else:
assert_not_equal(str(np.longdouble), str(np.float64))
assert_not_equal(np.longdouble, np.float64)

0 comments on commit 2dccadf

Please sign in to comment.