Skip to content

Commit 66bea25

Browse files
authored
pythongh-111426: Remove test_cmd.test_coverage (python#111427)
1 parent 81bc802 commit 66bea25

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Lib/test/test_cmd.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,9 @@ def load_tests(loader, tests, pattern):
248248
tests.addTest(doctest.DocTestSuite())
249249
return tests
250250

251-
def test_coverage(coverdir):
252-
trace = support.import_module('trace')
253-
tracer=trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
254-
trace=0, count=1)
255-
tracer.run('import importlib; importlib.reload(cmd); test_main()')
256-
r=tracer.results()
257-
print("Writing coverage results...")
258-
r.write_results(show_missing=True, summary=True, coverdir=coverdir)
259251

260252
if __name__ == "__main__":
261-
if "-c" in sys.argv:
262-
test_coverage('/tmp/cmd.cover')
263-
elif "-i" in sys.argv:
253+
if "-i" in sys.argv:
264254
samplecmdclass().cmdloop()
265255
else:
266256
unittest.main()

0 commit comments

Comments
 (0)