Skip to content

Commit

Permalink
TEST: Numpy changed longdouble str representations in 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 7, 2020
1 parent 5d3e817 commit fadfb45
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 fadfb45

Please sign in to comment.