summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15316: Let exceptions raised during imports triggered by theBrett Cannon2012-08-241-0/+38
| | | | | | | | | | | | | | | fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised.
* Close #14846: Handle a sys.path entry going awayNick Coghlan2012-08-201-3/+12
|
* Issue #15576: Allow extension modules to be a package's __init__Brett Cannon2012-08-107-26/+27
| | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public.
* Issue #15502: Finish bringing importlib.abc in line with the currentBrett Cannon2012-08-102-3/+9
| | | | | | | | | state of the import system. Also make importlib.invalidate_caches() work with sys.meta_path instead of sys.path_importer_cache to completely separate the path-based import system from the overall import system. Patch by Eric Snow.
* Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵Nick Coghlan2012-08-021-1/+1
| | | | the name into line with normal import terminology. Original patch by Eric Snow
* Issue #15502: Bring the importlib ABCs into line with the current state of ↵Nick Coghlan2012-08-022-7/+21
| | | | the import protocols given PEP 420. Original patch by Eric Snow.
* abc fixes.Barry Warsaw2012-07-312-0/+13
|
* Remove a relative import that escaped test.test_importlib.Brett Cannon2012-07-211-1/+1
|
* Move importlib.test.benchmark to Tools/importbench to make it moreBrett Cannon2012-07-201-252/+0
| | | | | visible and to place it with other micro-benchmarks (e.g. stringbench).
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-2041-0/+4545
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.