diff options
-rw-r--r-- | coverage/env.py | 4 | ||||
-rw-r--r-- | tests/test_arcs.py | 9 |
2 files changed, 1 insertions, 12 deletions
diff --git a/coverage/env.py b/coverage/env.py index cf91f747..d194f34a 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -85,10 +85,6 @@ class PYBEHAVIOR(object): # Python 3.9a1 made sys.argv[0] and other reported files absolute paths. report_absolute_files = (PYVERSION >= (3, 9)) - # Python 3.9a2 changed how return/finally was traced, but it was - # temporary. - bpo39114 = (PYVERSION == (3, 9, 0, 'alpha', 2, 0)) - # Coverage.py specifics. # Are we using the C-implemented trace function? diff --git a/tests/test_arcs.py b/tests/test_arcs.py index e3278303..bf17f712 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -3,7 +3,7 @@ """Tests for coverage.py's arc measurement.""" -from tests.coveragetest import CoverageTest, xfail +from tests.coveragetest import CoverageTest import coverage from coverage import env @@ -629,7 +629,6 @@ class ExceptionArcTest(CoverageTest): ) - @xfail(env.PYBEHAVIOR.bpo39114, reason="https://bugs.python.org/issue39114") def test_break_through_finally(self): if env.PYBEHAVIOR.finally_jumps_back: arcz = ".1 12 23 34 3D 45 56 67 68 7A 7D 8A A3 A7 BC CD D." @@ -654,7 +653,6 @@ class ExceptionArcTest(CoverageTest): arcz_missing="3D BC CD", ) - @xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114") def test_continue_through_finally(self): if env.PYBEHAVIOR.finally_jumps_back: arcz = ".1 12 23 34 3D 45 56 67 68 73 7A 8A A3 A7 BC CD D." @@ -692,7 +690,6 @@ class ExceptionArcTest(CoverageTest): arcz=".1 12 23 35 56 61 17 7.", ) - @xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114") def test_bug_212(self): # "except Exception as e" is crucial here. # Bug 212 said that the "if exc" line was incorrectly marked as only @@ -815,7 +812,6 @@ class ExceptionArcTest(CoverageTest): arcz_unpredicted="45 7A AB", ) - @xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114") def test_return_finally(self): 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" @@ -838,7 +834,6 @@ class ExceptionArcTest(CoverageTest): arcz=arcz, ) - @xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114") def test_except_jump_finally(self): if env.PYBEHAVIOR.finally_jumps_back: arcz = ( @@ -893,7 +888,6 @@ class ExceptionArcTest(CoverageTest): arcz_unpredicted="67", ) - @xfail(env.PYBEHAVIOR.bpo39114, "https://bugs.python.org/issue39114") def test_else_jump_finally(self): if env.PYBEHAVIOR.finally_jumps_back: arcz = ( @@ -1516,7 +1510,6 @@ class AsyncTest(CoverageTest): ) self.assertEqual(self.stdout(), "Compute 1 + 2 ...\n1 + 2 = 3\n") - @xfail(env.PYVERSION == (3, 9, 0, 'alpha', 2, 0), "https://bugs.python.org/issue39166") def test_async_for(self): self.check_coverage("""\ import asyncio |