From 89f44c12465b16a1ee63eb9e75ce13bb5a42e532 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 4 Jan 2020 06:42:07 -0500 Subject: A better name for a thing I will soon delete --- coverage/env.py | 2 +- tests/test_arcs.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/coverage/env.py b/coverage/env.py index ab9dbe92..cf91f747 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -87,7 +87,7 @@ class PYBEHAVIOR(object): # Python 3.9a2 changed how return/finally was traced, but it was # temporary. - bug39114 = (PYVERSION == (3, 9, 0, 'alpha', 2, 0)) + bpo39114 = (PYVERSION == (3, 9, 0, 'alpha', 2, 0)) # Coverage.py specifics. diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 19aaeb2c..5a712e02 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -630,7 +630,7 @@ class ExceptionArcTest(CoverageTest): def test_break_through_finally(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: 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." @@ -656,7 +656,7 @@ class ExceptionArcTest(CoverageTest): ) def test_continue_through_finally(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: 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." @@ -695,7 +695,7 @@ class ExceptionArcTest(CoverageTest): ) def test_bug_212(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: 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 @@ -819,7 +819,7 @@ class ExceptionArcTest(CoverageTest): ) def test_return_finally(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: 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" @@ -843,7 +843,7 @@ class ExceptionArcTest(CoverageTest): ) def test_except_jump_finally(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: self.xfail("https://bugs.python.org/issue39114") if env.PYBEHAVIOR.finally_jumps_back: arcz = ( @@ -899,7 +899,7 @@ class ExceptionArcTest(CoverageTest): ) def test_else_jump_finally(self): - if env.PYBEHAVIOR.bug39114: + if env.PYBEHAVIOR.bpo39114: self.xfail("https://bugs.python.org/issue39114") if env.PYBEHAVIOR.finally_jumps_back: arcz = ( -- cgit v1.2.1