Skip to content

Commit 6cb1755

Browse files
committed
TEST: Update mocks in unit test for openers->_compression move
1 parent cbb1a89 commit 6cb1755

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nibabel/tests/test_openers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ def patch_indexed_gzip(state):
121121
else:
122122
values = (False, GzipFile)
123123
with (
124+
mock.patch('nibabel._compression.HAVE_INDEXED_GZIP', values[0]),
124125
mock.patch('nibabel.openers.HAVE_INDEXED_GZIP', values[0]),
125126
mock.patch('nibabel.openers.IndexedGzipFile', values[1], create=True),
127+
mock.patch('nibabel._compression.IndexedGzipFile', values[1], create=True),
126128
):
127129
yield
128130

0 commit comments

Comments
 (0)