]> granicus.if.org Git - python/commit
Test discovery in unittest will only attempt to import modules that are importable...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 19:07:03 +0000 (19:07 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 19:07:03 +0000 (19:07 +0000)
commite91ea56b307e026ba40140305d8f35f0e1c1143a
tree9fc09481fe1ff2b21bdfd56b25860a4e25a7cbd1
parent6848d82a7c90ccf28ba0991129f99675e7b78e24
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
Doc/library/unittest.rst
Lib/test/test_unittest.py
Lib/unittest/loader.py
Lib/unittest/suite.py