Skip to content

Commit 8d70cdc

Browse files
committed
BF: allow for different float types
Code giving error when float128 not available. Test with available float types.
1 parent 495b5d8 commit 8d70cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_assert_allclose_safely():
7676
b[0, 0, 0] = 1
7777
assert_raises(AssertionError, assert_allclose_safely, a, b)
7878
# Test allcloseness of inf, especially np.float128 infs
79-
for dtt in (np.float32, np.float64, np.float128):
79+
for dtt in np.sctypes['float']:
8080
a = np.array([-np.inf, 1, np.inf], dtype=dtt)
8181
b = np.array([-np.inf, 1, np.inf], dtype=dtt)
8282
assert_allclose_safely(a, b)

0 commit comments

Comments
 (0)