Skip to content

Commit ed3f0fb

Browse files
committed
highlight issue: msprime produces different trees on macos (same seed)
1 parent 9c94739 commit ed3f0fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/tests/test_python_c.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,9 +2052,9 @@ def norm_func(X, n, nA, nB):
20522052
)
20532053
import platform
20542054

2055-
# only run if we're not running on macos
2056-
if platform.system() in {"Linux", "Windows"}:
2057-
assert (ts_multi.get_num_sites(), ts_multi.get_num_sites()) == (56, 56)
2055+
if platform.system() == "Darwin":
2056+
assert a.shape == (54, 54, 1) # ts has 54 sites on macos?
2057+
else:
20582058
assert a.shape == (56, 56, 1) # ts has 56 sites
20592059
a = ts_multi.two_locus_count_stat(
20602060
ss_sizes, ss, stat_func, norm_func, 1, True, None, None, None, None, "branch"

0 commit comments

Comments
 (0)