summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-12-21 12:29:55 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-12-21 12:29:55 -0500
commit28c29a72242e76dab658fe07f104961889c85c12 (patch)
tree6095241160f837c06d6be08ab2c6214b19038682 /tests/test_arcs.py
parent31f7280b5f9a8fcd4b36f23f5b058deee602c4db (diff)
downloadpython-coveragepy-git-28c29a72242e76dab658fe07f104961889c85c12.tar.gz
bpo 39114 broke 3.9, but maybe it's their bug
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index bf17f712..5ba2908f 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -630,6 +630,8 @@ class ExceptionArcTest(CoverageTest):
def test_break_through_finally(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
if env.PYBEHAVIOR.finally_jumps_back:
arcz = ".1 12 23 34 3D 45 56 67 68 7A 7D 8A A3 A7 BC CD D."
else:
@@ -654,6 +656,8 @@ class ExceptionArcTest(CoverageTest):
)
def test_continue_through_finally(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
if env.PYBEHAVIOR.finally_jumps_back:
arcz = ".1 12 23 34 3D 45 56 67 68 73 7A 8A A3 A7 BC CD D."
else:
@@ -691,6 +695,8 @@ class ExceptionArcTest(CoverageTest):
)
def test_bug_212(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
# "except Exception as e" is crucial here.
# Bug 212 said that the "if exc" line was incorrectly marked as only
# partially covered.
@@ -813,6 +819,8 @@ class ExceptionArcTest(CoverageTest):
)
def test_return_finally(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
if env.PYBEHAVIOR.finally_jumps_back:
arcz = ".1 12 29 9A AB BC C-1 -23 34 45 5-2 57 75 38 8-2"
else:
@@ -835,6 +843,8 @@ class ExceptionArcTest(CoverageTest):
)
def test_except_jump_finally(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
if env.PYBEHAVIOR.finally_jumps_back:
arcz = (
".1 1Q QR RS ST TU U. "
@@ -889,6 +899,8 @@ class ExceptionArcTest(CoverageTest):
)
def test_else_jump_finally(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
if env.PYBEHAVIOR.finally_jumps_back:
arcz = (
".1 1S ST TU UV VW W. "
@@ -1511,6 +1523,8 @@ class AsyncTest(CoverageTest):
self.assertEqual(self.stdout(), "Compute 1 + 2 ...\n1 + 2 = 3\n")
def test_async_for(self):
+ if env.PYBEHAVIOR.bug39114:
+ self.xfail("https://bugs.python.org/issue39114")
self.check_coverage("""\
import asyncio