Skip to content

Commit 07cea85

Browse files
author
Mathieu Scheltienne
committed
rm unused variable definition
1 parent 7966160 commit 07cea85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_image_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def validate_filenames(self, imaker, params):
172172
for path in (fname, pathlib.Path(fname)):
173173
with InTemporaryDirectory():
174174
# Validate that saving or loading a file doesn't use deprecated methods internally
175-
with clear_and_catch_warnings() as w:
175+
with clear_and_catch_warnings():
176176
warnings.filterwarnings(
177177
'error', category=DeprecationWarning, module=r'nibabel.*'
178178
)

0 commit comments

Comments
 (0)