Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Numpy changed longdouble str representations in 1.18 #858

Merged
merged 1 commit into from
Jan 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)