summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-01-15 07:30:20 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-01-15 14:01:33 -0500
commit41f1e0c7075b3b9ab73f1628559bc919d5de3775 (patch)
treeb4e57810194c79fdad5d96f54f1e2087294b4c5c /tests/test_arcs.py
parent73d4c5695eee4ee5f57c4cc1ad4b23d90adc6a6f (diff)
downloadpython-coveragepy-git-41f1e0c7075b3b9ab73f1628559bc919d5de3775.tar.gz
test: skip tests suffering from bpo 46389 (3.11)
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index d39b2f2a..35c1ed3e 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1234,6 +1234,10 @@ class YieldTest(CoverageTest):
arcz=".1 14 45 54 4. .2 2. -22 2-2",
)
+ @pytest.mark.skipif(
+ (3, 11, 0, "alpha", 4) <= env.PYVERSION,
+ reason="avoid a 3.11 bug: https://bugs.python.org/issue46389",
+ )
def test_bug_324(self):
# This code is tricky: the list() call pulls all the values from gen(),
# but each of them is a generator itself that is never iterated. As a
@@ -1620,6 +1624,10 @@ class MiscArcTest(CoverageTest):
self.check_coverage(code, arcs=[(-1, 1), (1, 2*n+4), (2*n+4, -1)])
assert self.stdout() == f"{n}\n"
+ @pytest.mark.skipif(
+ (3, 11, 0, "alpha", 4) <= env.PYVERSION,
+ reason="avoid a 3.11 bug: https://bugs.python.org/issue46389",
+ )
def test_partial_generators(self):
# https://github.com/nedbat/coveragepy/issues/475
# Line 2 is executed completely.