Skip to content

Commit a621d41

Browse files
Update nibabel/streamlines/tests/test_trk.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent b7a5f5a commit a621d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/streamlines/tests/test_trk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_load_file_with_wrong_information(self):
149149
# Simulate a TRK where `vox_to_ras` is invalid.
150150
trk_struct, trk_bytes = self.trk_with_bytes()
151151
trk_struct[Field.VOXEL_TO_RASMM] = np.diag([0, 0, 0, 1])
152-
with clear_and_catch_warnings(record=True, modules=[trk_module]) as _:
152+
with clear_and_catch_warnings(modules=[trk_module]):
153153
with pytest.raises(HeaderError):
154154
TrkFile.load(BytesIO(trk_bytes))
155155

0 commit comments

Comments
 (0)