summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-11-11 07:59:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-11-12 07:30:15 -0500
commit0086c8987191ce868ddbbb3ed4876e920af422c6 (patch)
tree1d3d1d3e8d5d7442af2e2ec508423df0b343cd36
parentdcb66aee618d971f4b62b89fbca8050ca8013f2c (diff)
downloadpython-coveragepy-git-0086c8987191ce868ddbbb3ed4876e920af422c6.tar.gz
One last decorator test change for 3.8
(cherry picked from commit ef6db13296f8450e30601490ee33a9643c9db0cf)
-rw-r--r--tests/test_arcs.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index fd9ec3a1..d2b2f3dd 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1376,6 +1376,10 @@ class DecoratorArcTest(CoverageTest):
def test_bug_466(self):
# A bad interaction between decorators and multi-line list assignments,
# believe it or not...!
+ if env.PYBEHAVIOR.trace_decorated_def:
+ arcz = ".1 1A A. 13 34 4. -35 58 8-3"
+ else:
+ arcz = ".1 1A A. 13 3. -35 58 8-3"
self.check_coverage("""\
class Parser(object):
@@ -1388,8 +1392,12 @@ class DecoratorArcTest(CoverageTest):
Parser.parse()
""",
- arcz=".1 1A A. 13 3. -35 58 8-3",
+ arcz=arcz,
)
+ if env.PYBEHAVIOR.trace_decorated_def:
+ arcz = ".1 1A A. 13 34 4. -35 58 8-3"
+ else:
+ arcz = ".1 1A A. 13 3. -35 58 8-3"
self.check_coverage("""\
class Parser(object):
@@ -1402,7 +1410,7 @@ class DecoratorArcTest(CoverageTest):
Parser.parse()
""",
- arcz=".1 1A A. 13 3. -35 58 8-3",
+ arcz=arcz,
)