Skip to content

Commit 89397d5

Browse files
committed
fix: use fixture for self comparison test
1 parent c91169a commit 89397d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/test_tree_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,9 +2311,9 @@ def test_shapes(self, proportion):
23112311
class TestBranchGeneticRelatedness(TestGeneticRelatedness, TopologyExamplesMixin):
23122312
mode = "branch"
23132313

2314-
def test_single_sample_set_self_comparison(self):
2314+
def test_single_sample_set_self_comparison(self, ts_12_highrecomb_fixture):
23152315
# Test for issue #3055 - self-comparisons with single sample set
2316-
ts = msprime.simulate(sample_size=10, Ne=10000, length=1000, random_seed=42)
2316+
ts = ts_12_highrecomb_fixture
23172317
# Single sample set with self-comparison
23182318
result = ts.genetic_relatedness([[0]], indexes=[(0, 0)], mode="branch")
23192319
assert result.shape == (1,)

0 commit comments

Comments
 (0)