DescriptionPatch to Python 2.7a4+ trunk for--
http://bugs.python.org/issue7559
The method unittest.TestLoader.loadTestsFromName() now lets ImportErrors bubble up if a bad import statement is encountered while loading a nested module. Before the method raised an AttributeError. The patch also includes code adapted from http://twistedmatrix.com .
Patch Set 1 #Patch Set 2 : Patch from: http://bugs.python.org/issue7559#msg102719 #Patch Set 3 : Added new unit test; incorporated unit test context manager suggestion; other clean-up. #
Total comments: 3
Patch Set 4 : Switched from ImportError to AttributeError after python-dev discussion. #
MessagesTotal messages: 1
|