Skip to content

Commit

Permalink
test: 3.10.0b4 traces match/case incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jul 12, 2021
1 parent ea8d62b commit 8cb3215
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_arcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,11 @@ def gen():
)


@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):
Expand Down

0 comments on commit 8cb3215

Please sign in to comment.