summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_arcs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index db756291..4ee7c3fa 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1215,7 +1215,11 @@ class YieldTest(CoverageTest):
)
-@pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in 3.10")
+three_ten_not_ready = (env.PYVERSION <= (3, 10, 0, 'beta', 4, 0))
+@pytest.mark.skipif(
+ three_ten_not_ready or not env.PYBEHAVIOR.match_case,
+ reason="Match-case is new in 3.10",
+)
class MatchCaseTest(CoverageTest):
"""Tests of match-case."""
def test_match_case_with_default(self):