Skip to content

Commit 4bc8df6

Browse files
authored
Merge pull request #73 from benjeffery/fix-test
Fix test
2 parents 5ea0a1d + 1b560c9 commit 4bc8df6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_cli.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,10 @@ def test_bad_file_format(self):
288288
with self.assertRaises(TestException):
289289
self.run_tszip([str(self.trees_path)])
290290
mocked_exit.assert_called_once_with(
291-
f"Error loading '{self.trees_path}': File not in kastore format. If this"
292-
f" file was generated by msprime < 0.6.0 (June 2018) it uses the old"
293-
f" HDF5-based format which can no longer be read directly. Please"
294-
f" convert to the new kastore format using the ``tskit upgrade``"
295-
f" command."
291+
f"Error loading '{self.trees_path}': File not in kastore format. Either"
292+
f" the file is corrupt or it is not a tskit tree sequence file. It may"
293+
f" be a legacy HDF file upgradable with `tskit upgrade` or a compressed"
294+
f" tree sequence file that can be decompressed with `tszip`."
296295
)
297296

298297
def test_compress_stdout_keep(self):

0 commit comments

Comments
 (0)