Skip to content

Commit bc80ae0

Browse files
committed
DEV: remove pytest skips on windows
1 parent e4ad032 commit bc80ae0

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

tests/test_app/test_app.py

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_mfinder_result_roundtrip(five_otu: Alignment) -> None:
111111
assert isinstance(inflated, ModelFinderResult)
112112
assert str(got.best_aicc) == str(inflated.best_aicc)
113113

114+
114115
@pytest.mark.skipif(cogent3_vers < "2025.3.1", reason="requires cogent3 >= 2025.3.1")
115116
@pytest.mark.parametrize("use_hook", [None, "piqtree"])
116117
def test_quick_tree_hook(four_otu: Alignment, use_hook: str | None) -> None:

tests/test_iqtree/test_build_tree.py

-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import platform
21
import re
32

43
import pytest
@@ -88,10 +87,6 @@ def test_rate_model_build_tree(
8887
)
8988

9089

91-
@pytest.mark.skipif(
92-
platform.system() == "Windows",
93-
reason="IQ-TREE errors can't be caught yet on Windows",
94-
)
9590
def test_build_tree_inadequate_bootstrapping(four_otu: ArrayAlignment) -> None:
9691
with pytest.raises(IqTreeError, match=re.escape("#replicates must be >= 1000")):
9792
piqtree.build_tree(four_otu, Model(DnaModel.GTR), bootstrap_replicates=10)

tests/test_iqtree/test_random_trees.py

-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import platform
2-
31
import pytest
42

53
import piqtree
@@ -47,10 +45,6 @@ def test_random_trees_no_seed(
4745

4846
@pytest.mark.parametrize("num_taxa", [-1, 0, 1, 2])
4947
@pytest.mark.parametrize("tree_mode", list(piqtree.TreeGenMode))
50-
@pytest.mark.skipif(
51-
platform.system() == "Windows",
52-
reason="IQ-TREE errors can't be caught yet on Windows",
53-
)
5448
def test_invalid_taxa(
5549
num_taxa: int,
5650
tree_mode: piqtree.TreeGenMode,

tests/test_iqtree/test_segmentation_fault.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Test combinations of calls which under previous versions resulted in a segmentation fault."""
22

3-
import platform
4-
53
import pytest
64
from cogent3 import make_aligned_seqs, make_tree
75

@@ -10,10 +8,6 @@
108
from piqtree.model import DiscreteGammaModel, DnaModel, FreeRateModel, Model
119

1210

13-
@pytest.mark.skipif(
14-
platform.system() == "Windows",
15-
reason="IQ-TREE errors can't be caught yet on Windows",
16-
)
1711
def test_two_build_random_trees() -> None:
1812
"""
1913
Calling build tree twice followed by random trees with a bad input
@@ -28,10 +22,6 @@ def test_two_build_random_trees() -> None:
2822
random_trees(3, 2, TreeGenMode.BALANCED, 1)
2923

3024

31-
@pytest.mark.skipif(
32-
platform.system() == "Windows",
33-
reason="IQ-TREE errors can't be caught yet on Windows",
34-
)
3525
def test_two_fit_random_trees() -> None:
3626
"""
3727
Calling fit tree twice followed by random trees with a bad input
@@ -49,10 +39,6 @@ def test_two_fit_random_trees() -> None:
4939

5040
@pytest.mark.parametrize("rate_model_class", [DiscreteGammaModel, FreeRateModel])
5141
@pytest.mark.parametrize("categories", [0, -4])
52-
@pytest.mark.skipif(
53-
platform.system() == "Windows",
54-
reason="IQ-TREE errors can't be caught yet on Windows",
55-
)
5642
def test_two_invalid_models(
5743
rate_model_class: type[DiscreteGammaModel] | type[FreeRateModel],
5844
categories: int,

0 commit comments

Comments
 (0)