From 32e3cce03ed39d9abcd712544959c4e51c41fe1b Mon Sep 17 00:00:00 2001 From: Yan Wong Date: Mon, 12 Aug 2019 17:24:25 +0100 Subject: [PATCH] Make sure that extract_ancestors is not compared with path_compressed ones --- tests/test_inference.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_inference.py b/tests/test_inference.py index 8971dbda..d3efe397 100644 --- a/tests/test_inference.py +++ b/tests/test_inference.py @@ -1642,7 +1642,8 @@ class TestExtractAncestors(unittest.TestCase): def verify(self, samples): ancestors = tsinfer.generate_ancestors(samples) ancestors_ts_1 = tsinfer.match_ancestors(samples, ancestors) - ts = tsinfer.match_samples(samples, ancestors_ts_1, simplify=False) + ts = tsinfer.match_samples( + samples, ancestors_ts_1, path_compression=False, simplify=False) t1 = ancestors_ts_1.dump_tables() t2, node_id_map = tsinfer.extract_ancestors(samples, ts) self.assertEqual(len(t2.provenances), len(t1.provenances) + 2)