Skip to content

Commit

Permalink
test: a better way to skip a test for two reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jul 13, 2021
1 parent bcd5e75 commit 2c62482
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_arcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,11 +1215,8 @@ def gen():
)


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",
)
@pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in 3.10")
@pytest.mark.skipif(env.PYVERSION <= (3, 10, 0, 'beta', 4, 0), reason="3.10.0b4 had bugs")
class MatchCaseTest(CoverageTest):
"""Tests of match-case."""
def test_match_case_with_default(self):
Expand Down

0 comments on commit 2c62482

Please sign in to comment.