summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-01-09 11:37:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-01-15 07:58:57 -0500
commitd723b46460dc7ffb4abf54806087ffd614b81331 (patch)
treef15a9e0a380af291c912e1fe417d157e7e897e68 /tests/test_parser.py
parenta60a9e8b5f52a76ce15be3289ca64821ce0869e7 (diff)
downloadpython-coveragepy-git-d723b46460dc7ffb4abf54806087ffd614b81331.tar.gz
fix: 3.11 now traces decorator lines as the decorators execute
See: https://bugs.python.org/issue46234
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 1e509035..2393ccd1 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -240,6 +240,10 @@ class PythonParserTest(CoverageTest):
expected_arcs.update(set(arcz_to_arcs("-46 6-4")))
expected_exits.update({6: 1})
+ if env.PYBEHAVIOR.trace_decorator_line_again:
+ expected_arcs.update(set(arcz_to_arcs("54 98")))
+ expected_exits.update({9: 2, 5: 2})
+
assert expected_statements == parser.statements
assert expected_arcs == parser.arcs()
assert expected_exits == parser.exit_counts()