]> granicus.if.org Git - python/commit
Close #7559: ImportError when loading a test now shown as ImportError.
authorRobert Collins <rbtcollins@hp.com>
Wed, 29 Oct 2014 19:27:27 +0000 (08:27 +1300)
committerRobert Collins <rbtcollins@hp.com>
Wed, 29 Oct 2014 19:27:27 +0000 (08:27 +1300)
commit659dd625b4c3489fbefe9fa866d87bc2b5e14366
tree20fe35b94b5a869c3817810a37fa051af09af73e
parentc1345840202fed6f1405efec97cd2a147aa5a92e
Close #7559: ImportError when loading a test now shown as ImportError.

Previously the ImportError was only shown if the top level containing
package failed to import, with other ImportErrors showing up as
AttributeError - hiding the real cause. As part of this,
`TestLoader.loadTestsFromNames` now captures errors to self.errors.
Doc/library/unittest.rst
Lib/unittest/loader.py
Lib/unittest/test/test_loader.py
Misc/NEWS