mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
2f3ee02c22
The added file is the coverage default at some point in time + checking branches both ways + IDLE additions, labelled as such and somewhat designed to be unlikely to affect other files. Located in the CPython repository directory, it can be used where it is or copied elsewhere, depending on how one runs coverage. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
20 lines
359 B
INI
20 lines
359 B
INI
[run]
|
|
branch = True
|
|
|
|
[report]
|
|
# Regexes for lines to exclude from consideration
|
|
exclude_lines =
|
|
# Don't complain if non-runnable code isn't run:
|
|
if 0:
|
|
if __name__ == .__main__.:
|
|
|
|
.*# pragma: no cover
|
|
.*# pragma: no branch
|
|
|
|
# Additions for IDLE:
|
|
.*# htest #
|
|
if not (_htest or _utest):
|
|
if not .*_utest:
|
|
if .*_htest:
|
|
|