mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
This was achieved by: * moving many pass statements in tests onto their own lines, so they pass line coverage and can match an easy ignore pattern if branch coverage is added later. * removing code that cannot be reached. * removing long-disabled tests. * removing unused code. * adding tests for uncovered code It turned out that removing `if __name__ == '__main__'` blocks that run unittest.main() at the bottom of test files was surprisingly contentious, so they remain and can be filtered out with an appropriate .coveragerc. |
||
|---|---|---|
| .. | ||
| testmock | ||
| __init__.py | ||
| __main__.py | ||
| _test_warnings.py | ||
| dummy.py | ||
| support.py | ||
| test_assertions.py | ||
| test_break.py | ||
| test_case.py | ||
| test_discovery.py | ||
| test_functiontestcase.py | ||
| test_loader.py | ||
| test_program.py | ||
| test_result.py | ||
| test_runner.py | ||
| test_setups.py | ||
| test_skipping.py | ||
| test_suite.py | ||