gh-106368: Improve coverage reports for argument clinic (#107693)

This commit is contained in:
Alex Waygood 2023-08-06 20:40:55 +01:00 committed by GitHub
parent 9564e31cbc
commit ee3bf45e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 6 deletions

View file

@ -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