summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-07-13 17:08:53 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-07-13 17:08:53 -0400
commit2c624826f82b7ce03d05f7228b5a8cb07f7f27fa (patch)
tree8905f033222dfb440e84c9320841db53558ba721 /tests/test_arcs.py
parentbcd5e75d359f153be7e25567d076c8876f353cbc (diff)
downloadpython-coveragepy-git-2c624826f82b7ce03d05f7228b5a8cb07f7f27fa.tar.gz
test: a better way to skip a test for two reasons
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index c572fdfd..2696322f 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1215,11 +1215,8 @@ class YieldTest(CoverageTest):
)
-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):