Skip to content

Commit 320dd07

Browse files
committed
Remove a temporary xfail for 3.9a2
1 parent 75c3e5d commit 320dd07

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

coverage/env.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ class PYBEHAVIOR(object):
8585
# Python 3.9a1 made sys.argv[0] and other reported files absolute paths.
8686
report_absolute_files = (PYVERSION >= (3, 9))
8787

88-
# Python 3.9a2 changed how return/finally was traced, but it was
89-
# temporary.
90-
bpo39114 = (PYVERSION == (3, 9, 0, 'alpha', 2, 0))
91-
9288
# Coverage.py specifics.
9389

9490
# Are we using the C-implemented trace function?

tests/test_arcs.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""Tests for coverage.py's arc measurement."""
55

6-
from tests.coveragetest import CoverageTest, xfail
6+
from tests.coveragetest import CoverageTest
77

88
import coverage
99
from coverage import env
@@ -629,7 +629,6 @@ def test_finally_in_loop(self):
629629
)
630630

631631

632-
@xfail(env.PYBEHAVIOR.bpo39114, reason="https://bugs.python.org/issue39114")
633632
def test_break_through_finally(self):
634633
if env.PYBEHAVIOR.finally_jumps_back:
635634
arcz = ".1 12 23 34 3D 45 56 67 68 7A 7D 8A A3 A7 BC CD D."
@@ -654,7 +653,6 @@ def test_break_through_finally(self):
654653
arcz_missing="3D BC CD",
655654
)
656655

657-
@xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114")
658656
def test_continue_through_finally(self):
659657
if env.PYBEHAVIOR.finally_jumps_back:
660658
arcz = ".1 12 23 34 3D 45 56 67 68 73 7A 8A A3 A7 BC CD D."
@@ -692,7 +690,6 @@ def test_finally_in_loop_bug_92(self):
692690
arcz=".1 12 23 35 56 61 17 7.",
693691
)
694692

695-
@xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114")
696693
def test_bug_212(self):
697694
# "except Exception as e" is crucial here.
698695
# Bug 212 said that the "if exc" line was incorrectly marked as only
@@ -815,7 +812,6 @@ def test_multiple_except_clauses(self):
815812
arcz_unpredicted="45 7A AB",
816813
)
817814

818-
@xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114")
819815
def test_return_finally(self):
820816
if env.PYBEHAVIOR.finally_jumps_back:
821817
arcz = ".1 12 29 9A AB BC C-1 -23 34 45 5-2 57 75 38 8-2"
@@ -838,7 +834,6 @@ def check_token(data):
838834
arcz=arcz,
839835
)
840836

841-
@xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114")
842837
def test_except_jump_finally(self):
843838
if env.PYBEHAVIOR.finally_jumps_back:
844839
arcz = (
@@ -893,7 +888,6 @@ def func(x):
893888
arcz_unpredicted="67",
894889
)
895890

896-
@xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114")
897891
def test_else_jump_finally(self):
898892
if env.PYBEHAVIOR.finally_jumps_back:
899893
arcz = (
@@ -1516,7 +1510,6 @@ async def print_sum(x, y): # 8
15161510
)
15171511
self.assertEqual(self.stdout(), "Compute 1 + 2 ...\n1 + 2 = 3\n")
15181512

1519-
@xfail(env.PYVERSION == (3, 9, 0, 'alpha', 2, 0), "https://bugs.python.org/issue39166")
15201513
def test_async_for(self):
15211514
self.check_coverage("""\
15221515
import asyncio

0 commit comments

Comments
 (0)