Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 762aba7

Browse filesBrowse files
miss-islingtonsobolevnskirpichev
authored
[3.11] gh-111348: Fix direct invocation of test_doctest; remove test_doctest.test_coverage (GH-111349) (#111360)
gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349) (cherry picked from commit 31c05b7) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 12c7e50 commit 762aba7
Copy full SHA for 762aba7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-15
lines changed

‎Lib/test/test_doctest.py

Copy file name to clipboardExpand all lines: Lib/test/test_doctest.py
+1-15Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,19 +3318,5 @@ def load_tests(loader, tests, pattern):
33183318
return tests
33193319

33203320

3321-
def test_coverage(coverdir):
3322-
trace = import_helper.import_module('trace')
3323-
tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
3324-
trace=0, count=1)
3325-
tracer.run('test_main()')
3326-
r = tracer.results()
3327-
print('Writing coverage results...')
3328-
r.write_results(show_missing=True, summary=True,
3329-
coverdir=coverdir)
3330-
3331-
33323321
if __name__ == '__main__':
3333-
if '-c' in sys.argv:
3334-
test_coverage('/tmp/doctest.cover')
3335-
else:
3336-
unittest.main()
3322+
unittest.main(module='test.test_doctest')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.