]> granicus.if.org Git - python/commit
Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 23:51:16 +0000 (23:51 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 23:51:16 +0000 (23:51 +0000)
commitc73a05f775013980a2a0de1c2a65b8542ee0bfa6
tree1736a0b441dc0f6cd20157f2436d5593eef44c54
parent47c884129d4b12cd06a5b77c5833b0afee28cd25
Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()

Use test_support.import_module() instead of import to raise a SkipTest
exception if the import fail. Import trace fails if the threading module is
missing.

See also part 3: test_doctest: import trace module in test_coverage().
Lib/test/test_cmd.py