diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-11 07:59:54 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-11 16:45:33 -0500 |
commit | ef6db13296f8450e30601490ee33a9643c9db0cf (patch) | |
tree | da48af810061a727b4cbeb22fbdf0220c35027a5 | |
parent | c86186ac5b305f7d72b0bd8976c0f217e604d882 (diff) | |
download | python-coveragepy-git-ef6db13296f8450e30601490ee33a9643c9db0cf.tar.gz |
One last decorator test change for 3.8
-rw-r--r-- | tests/test_arcs.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 324bd53f..d3430af2 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1372,6 +1372,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): @@ -1384,8 +1388,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): @@ -1398,7 +1406,7 @@ class DecoratorArcTest(CoverageTest): Parser.parse() """, - arcz=".1 1A A. 13 3. -35 58 8-3", + arcz=arcz, ) |