Skip to content

Commit 37110cf

Browse files
committed
TEST: Suppress pytest warning, call TestCase.setup setup_method
1 parent 98e20ae commit 37110cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/tests/test_image_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def validate_to_from_bytes(self, imaker, params):
537537
del img_b
538538

539539
@pytest.fixture(autouse=True)
540-
def setup(self, httpserver, tmp_path):
540+
def setup_method(self, httpserver, tmp_path):
541541
"""Make pytest fixtures available to validate functions"""
542542
self.httpserver = httpserver
543543
self.tmp_path = tmp_path
@@ -767,7 +767,7 @@ class TestMinc1API(ImageHeaderAPI):
767767

768768
class TestMinc2API(TestMinc1API):
769769

770-
def setup(self):
770+
def setup_method(self):
771771
if not have_h5py:
772772
raise unittest.SkipTest('Need h5py for these tests')
773773

0 commit comments

Comments
 (0)