diff --git a/nibabel/tests/test_nifti1.py b/nibabel/tests/test_nifti1.py index 808d06c15a..15971c21f5 100644 --- a/nibabel/tests/test_nifti1.py +++ b/nibabel/tests/test_nifti1.py @@ -775,7 +775,7 @@ def test_int64_warning_or_error(self): for dtype in (np.int64, np.uint64): data = np.arange(24, dtype=dtype).reshape((2, 3, 4)) # Starts as a warning, transitions to error at 5.0 - if cmp_pkg_version('5.0') < 0: + if cmp_pkg_version('5.0') <= 0: cm = pytest.raises(ValueError) else: cm = pytest.warns(FutureWarning)