From 323a88ae3e278d1d0f1bcbad223575a323a607ac Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 9 Jan 2023 09:50:15 -0500 Subject: [PATCH] TEST: Fix version comparison for alert_future_error in nifti1 tests --- nibabel/tests/test_nifti1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)