summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-07-12 19:36:07 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-07-12 19:41:47 -0400
commit8cb321599e1c738c1e2af8f009a40e35423bcd9f (patch)
tree9119baa77e809ae3fd501affbbb30a3a8db8d2bd
parentea8d62ba17dfc004356c827b8e659321db92f285 (diff)
downloadpython-coveragepy-git-8cb321599e1c738c1e2af8f009a40e35423bcd9f.tar.gz
test: 3.10.0b4 traces match/case incorrectly
See: https://bugs.python.org/issue44600
-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):