Skip to content

Commit 8cb3215

Browse files
committed
test: 3.10.0b4 traces match/case incorrectly
See: https://bugs.python.org/issue44600
1 parent ea8d62b commit 8cb3215

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_arcs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,11 @@ def gen():
12151215
)
12161216

12171217

1218-
@pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in 3.10")
1218+
three_ten_not_ready = (env.PYVERSION <= (3, 10, 0, 'beta', 4, 0))
1219+
@pytest.mark.skipif(
1220+
three_ten_not_ready or not env.PYBEHAVIOR.match_case,
1221+
reason="Match-case is new in 3.10",
1222+
)
12191223
class MatchCaseTest(CoverageTest):
12201224
"""Tests of match-case."""
12211225
def test_match_case_with_default(self):

0 commit comments

Comments
 (0)