Skip to content

Commit 323a88a

Browse files
committed
TEST: Fix version comparison for alert_future_error in nifti1 tests
1 parent 5f37ffa commit 323a88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_nifti1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def test_int64_warning_or_error(self):
775775
for dtype in (np.int64, np.uint64):
776776
data = np.arange(24, dtype=dtype).reshape((2, 3, 4))
777777
# Starts as a warning, transitions to error at 5.0
778-
if cmp_pkg_version('5.0') < 0:
778+
if cmp_pkg_version('5.0') <= 0:
779779
cm = pytest.raises(ValueError)
780780
else:
781781
cm = pytest.warns(FutureWarning)

0 commit comments

Comments
 (0)