Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Jul 16, 2024
1 parent 2d0a384 commit 0593277
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ def test_too_small_max_file_size_add(self):
genotypes=np.zeros(base_size, dtype=np.int8),
)
# Work around https://github.com/tskit-dev/tsinfer/issues/201
small_sample_file.data.store.close()
try:
small_sample_file.data.store.close()
except UnboundLocalError:
pass

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

0 comments on commit 0593277

Please sign in to comment.