summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-01-04 06:42:07 -0500
committerNed Batchelder <ned@nedbatchelder.com>2020-01-04 06:42:07 -0500
commit89f44c12465b16a1ee63eb9e75ce13bb5a42e532 (patch)
tree8971864935e5d7ca1b7c8c143baa4f5fee00d42d
parentfdfc91c70a37e79f1ebf84bbbfb7c5513d0d6b27 (diff)
downloadpython-coveragepy-git-89f44c12465b16a1ee63eb9e75ce13bb5a42e532.tar.gz
A better name for a thing I will soon delete
-rw-r--r--coverage/env.py2
-rw-r--r--tests/test_arcs.py12
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 = (