Skip to content

Commit

Permalink
TEST: Fix version comparison for alert_future_error in nifti1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 9, 2023
1 parent 5f37ffa commit 323a88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/tests/test_nifti1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 323a88a

Please sign in to comment.