Skip to content

Commit f122d33

Browse files
Disable msprime-based tests on OSX
1 parent a8d4336 commit f122d33

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_simulated_data.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import msprime
1+
import sys
2+
23
import numpy.testing as nt
34
import pysam
45
import pytest
@@ -7,9 +8,13 @@
78
from bio2zarr import vcf2zarr
89

910

11+
@pytest.mark.skipif(sys.platform == "darwin", reason="msprime OSX pip packages broken")
1012
class TestTskitRoundTripVcf:
1113
@pytest.mark.parametrize("ploidy", [1, 2, 3, 4])
1214
def test_ploidy(self, ploidy, tmp_path):
15+
# FIXME importing here so pytest.skip avoids importing msprime.
16+
import msprime
17+
1318
ts = msprime.sim_ancestry(
1419
2,
1520
population_size=10**4,

0 commit comments

Comments
 (0)