3
3
4
4
"""Tests for coverage.py's arc measurement."""
5
5
6
- from tests .coveragetest import CoverageTest , xfail
6
+ from tests .coveragetest import CoverageTest
7
7
8
8
import coverage
9
9
from coverage import env
@@ -629,7 +629,6 @@ def test_finally_in_loop(self):
629
629
)
630
630
631
631
632
- @xfail (env .PYBEHAVIOR .bpo39114 , reason = "https://bugs.python.org/issue39114" )
633
632
def test_break_through_finally (self ):
634
633
if env .PYBEHAVIOR .finally_jumps_back :
635
634
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):
654
653
arcz_missing = "3D BC CD" ,
655
654
)
656
655
657
- @xfail (env .PYBEHAVIOR .bpo39114 , "https://bugs.python.org/issue39114" )
658
656
def test_continue_through_finally (self ):
659
657
if env .PYBEHAVIOR .finally_jumps_back :
660
658
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):
692
690
arcz = ".1 12 23 35 56 61 17 7." ,
693
691
)
694
692
695
- @xfail (env .PYBEHAVIOR .bpo39114 , "https://bugs.python.org/issue39114" )
696
693
def test_bug_212 (self ):
697
694
# "except Exception as e" is crucial here.
698
695
# Bug 212 said that the "if exc" line was incorrectly marked as only
@@ -815,7 +812,6 @@ def test_multiple_except_clauses(self):
815
812
arcz_unpredicted = "45 7A AB" ,
816
813
)
817
814
818
- @xfail (env .PYBEHAVIOR .bpo39114 , "https://bugs.python.org/issue39114" )
819
815
def test_return_finally (self ):
820
816
if env .PYBEHAVIOR .finally_jumps_back :
821
817
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):
838
834
arcz = arcz ,
839
835
)
840
836
841
- @xfail (env .PYBEHAVIOR .bpo39114 , "https://bugs.python.org/issue39114" )
842
837
def test_except_jump_finally (self ):
843
838
if env .PYBEHAVIOR .finally_jumps_back :
844
839
arcz = (
@@ -893,7 +888,6 @@ def func(x):
893
888
arcz_unpredicted = "67" ,
894
889
)
895
890
896
- @xfail (env .PYBEHAVIOR .bpo39114 , "https://bugs.python.org/issue39114" )
897
891
def test_else_jump_finally (self ):
898
892
if env .PYBEHAVIOR .finally_jumps_back :
899
893
arcz = (
@@ -1516,7 +1510,6 @@ async def print_sum(x, y): # 8
1516
1510
)
1517
1511
self .assertEqual (self .stdout (), "Compute 1 + 2 ...\n 1 + 2 = 3\n " )
1518
1512
1519
- @xfail (env .PYVERSION == (3 , 9 , 0 , 'alpha' , 2 , 0 ), "https://bugs.python.org/issue39166" )
1520
1513
def test_async_for (self ):
1521
1514
self .check_coverage ("""\
1522
1515
import asyncio
0 commit comments