Skip to content

Commit 0593277

Browse files
committed
Fix failing test
1 parent 2d0a384 commit 0593277

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_formats.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ def test_too_small_max_file_size_add(self):
252252
genotypes=np.zeros(base_size, dtype=np.int8),
253253
)
254254
# Work around https://github.com/tskit-dev/tsinfer/issues/201
255-
small_sample_file.data.store.close()
255+
try:
256+
small_sample_file.data.store.close()
257+
except UnboundLocalError:
258+
pass
256259

257260
def test_acceptable_max_file_size(self):
258261
with tempfile.TemporaryDirectory(prefix="tsinf_format_test") as tempdir:

0 commit comments

Comments
 (0)