Skip to content

Commit f4e000d

Browse files
committed
fix failing tests
1 parent a22c890 commit f4e000d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

python/tests/test_highlevel.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3764,19 +3764,19 @@ def test_str(self, ts_fixture):
37643764
╔═+╗\s*
37653765
║Tree.*?║\s*
37663766
╠═+╤═+╣\s*
3767-
║Index.*?│\s*\d+║\s*
3767+
║Index.*?│\s*[\d\u2009,]+║\s*
37683768
╟─+┼─+╢\s*
3769-
║Interval.*?│\s*\d+-\d+\s*\(\d+\)║\s*
3769+
║Interval.*?│\s*[\d\u2009,]+-[\d\u2009,]+\s*\([\d\u2009,]+\)║\s*
37703770
╟─+┼─+╢\s*
3771-
║Roots.*?│\s*\d+║\s*
3771+
║Roots.*?│\s*[\d\u2009,]+║\s*
37723772
╟─+┼─+╢\s*
3773-
║Nodes.*?│\s*\d+║\s*
3773+
║Nodes.*?│\s*[\d\u2009,]+║\s*
37743774
╟─+┼─+╢\s*
3775-
║Sites.*?│\s*\d+║\s*
3775+
║Sites.*?│\s*[\d\u2009,]+║\s*
37763776
╟─+┼─+╢\s*
3777-
║Mutations.*?│\s*\d+║\s*
3777+
║Mutations.*?│\s*[\d\u2009,]+║\s*
37783778
╟─+┼─+╢\s*
3779-
║Total\s*Branch\s*Length.*?│\s*[\d,]+\.\d+║\s*
3779+
║Total\s*Branch\s*Length.*?│\s*[\d\u2009,]+\.\d+║\s*
37803780
╚═+╧═+╝\s*
37813781
""",
37823782
re.VERBOSE | re.DOTALL,

python/tskit/genotypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ def __str__(self) -> str:
349349
[
350350
f"Samples with allele "
351351
f"""{'missing' if k is None else "'" + k + "'"}""",
352-
f"{util.format_number(counts[k])} ({
353-
util.format_number(freqs[k] * 100, 2)}%)",
352+
f"{util.format_number(counts[k])} "
353+
f"({util.format_number(freqs[k] * 100, 2)}%)",
354354
]
355355
for k in self.alleles
356356
]

0 commit comments

Comments
 (0)