Skip to content

Commit d756751

Browse files
authored
TEST: Ensure warning isn't suppressed
1 parent a1400bd commit d756751

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nibabel/tests/test_nifti1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ def test_slice_times(self):
569569
hdr2.set_slice_duration(0.1)
570570
hdr2.set_data_shape((1, 1, 2))
571571
with clear_and_catch_warnings() as w:
572+
warnings.simplefilter("always")
572573
hdr2.set_slice_times([0.1, 0])
573574
assert len(w) == 1
574575
# but always must be choosing sequential one first

0 commit comments

Comments
 (0)