Skip to content

Commit c2f2444

Browse files
committed
Fix coverage excludes
Bug: T400546 Change-Id: I26885a8b6e529943885f9c651fc15bbf9eaec098
1 parent d6c5995 commit c2f2444

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Tracker = "https://phabricator.wikimedia.org/tag/pywikibot/"
123123
ignore_errors = true
124124
skip_empty = true
125125

126-
exclude_other = [
126+
exclude_also = [
127127
# Have to re-enable the standard pragma
128128
"except ImportError",
129129
"except KeyboardInterrupt",
@@ -140,10 +140,6 @@ exclude_other = [
140140
"@(abc\\.)?abstractmethod",
141141
"@deprecated\\([^\\)]+\\)",
142142
"@unittest\\.skip",
143-
"no cover: start(?s:.)*?no cover: stop",
144-
]
145-
146-
exclude_also = [
147143
# Comments to turn coverage on and off:
148144
"no cover: start(?s:.)*?no cover: stop",
149145
]

0 commit comments

Comments
 (0)