Skip to content

Commit 6345d21

Browse files
committed
TEST: Check only relevant warnings
1 parent b2c0f81 commit 6345d21

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
@@ -377,9 +377,9 @@ def validate_shape(self, imaker, params):
377377

378378
def validate_shape_deprecated(self, imaker, params):
379379
# Check deprecated get_shape API
380+
img = imaker()
380381
with clear_and_catch_warnings() as w:
381382
warnings.simplefilter('always', DeprecationWarning)
382-
img = imaker()
383383
assert_equal(img.get_shape(), params['shape'])
384384
assert_equal(len(w), 1)
385385

0 commit comments

Comments
 (0)