mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-106368: Improve coverage reports for argument clinic (#107693)
This commit is contained in:
parent
9564e31cbc
commit
ee3bf45e5e
3 changed files with 20 additions and 6 deletions
|
|
@ -7,6 +7,11 @@ exclude_lines =
|
|||
# Don't complain if non-runnable code isn't run:
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
raise AssertionError\(
|
||||
|
||||
# Empty bodies in protocols or abstract methods
|
||||
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
|
||||
^\s*\.\.\.(\s*#.*)?$
|
||||
|
||||
.*# pragma: no cover
|
||||
.*# pragma: no branch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue