]> granicus.if.org Git - python/commit
Issue #7449 part 3, test_doctest: import trace module in test_coverage()
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 21:51:26 +0000 (21:51 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 21:51:26 +0000 (21:51 +0000)
commitedb9f873cfbf9d7f05cb73fa19036831813b28be
tree959ca2237c72237d686971eb5f07884aa75b23a7
parent1b4a69d79bcdd50829ce871be703606211965e72
Issue #7449 part 3, test_doctest: import trace module in test_coverage()

Import trace module fail if the threading module is missing. test_coverage() is
only used if test_doctest.py is used with the -c option. This commit allows to
execute the test suite without thread support.

Move "import trace" in test_coverage() and use
test_support.import_module('trace').
Lib/test/test_doctest.py