summaryrefslogtreecommitdiff
path: root/lab/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-09-26 19:21:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-09-26 20:27:16 -0400
commitfd36918609a18bd36a7e2c3b208220cf25c0957d (patch)
tree013019b92812c04882d85c83d334ecfae3dd6600 /lab/parser.py
parent2c4bd7f1f9e8c3c429db2b9cfdc33ba0881f8fde (diff)
downloadpython-coveragepy-git-fd36918609a18bd36a7e2c3b208220cf25c0957d.tar.gz
fix: `class` statements shouldn't be branches. #1449
Revert "refactor: we no longer need to treat 'class' lines specially" This reverts commit 79f9f4575321fafc2ef770e3255f874db3d4b037.
Diffstat (limited to 'lab/parser.py')
-rw-r--r--lab/parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lab/parser.py b/lab/parser.py
index 43f3da52..ebd4e7f3 100644
--- a/lab/parser.py
+++ b/lab/parser.py
@@ -108,6 +108,8 @@ class ParserMain:
marks[2] = str(exits)
if lineno in pyparser.raw_docstrings:
marks[3] = '"'
+ if lineno in pyparser.raw_classdefs:
+ marks[3] = 'C'
if lineno in pyparser.raw_excluded:
marks[4] = 'x'