Skip to content

Commit

Permalink
Update nibabel/tests/test_testing.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
DimitriPapadopoulos and effigies committed Mar 29, 2024
1 parent faba330 commit a3efe03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/tests/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_warn_error():
with error_warnings():
with pytest.raises(UserWarning):
warnings.warn('A test')
with error_warnings() as _:
with error_warnings():
with pytest.raises(UserWarning):
warnings.warn('A test')
assert n_warns == len(warnings.filters)
Expand Down

0 comments on commit a3efe03

Please sign in to comment.