summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_abc.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19593: Use specific asserts in importlib tests.Serhiy Storchaka2014-07-071-1/+1
|\
| * Issue #19593: Use specific asserts in importlib tests.Serhiy Storchaka2014-07-071-1/+1
| |
* | Issue #21503: Use test_both() consistently in test_importlib.Eric Snow2014-05-161-150/+142
|/
* Issue #19719: Update various finder and loader ABCs such that theirBrett Cannon2014-01-071-0/+132
| | | | | | | old methods now provide implementations when PEP 451 APIs are present. This should help with backwards-compatibility with code which has not been updated to work with PEP 451.
* Issue 19713: Add PEP 451-related deprecations.Eric Snow2014-01-071-3/+10
|
* Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-197/+0
|
* [issue 19152] Ensure we have actually registered ExtensionFileLoader as an ↵Eric Snow2013-10-051-0/+1
| | | | ExecutionLoader.
* Issue #16803: Run test.test_importlib.test_abc under bothBrett Cannon2013-10-041-120/+299
| | | | _frozen_importlib and source.
* Issue #17177: stop using imp in test_importlibBrett Cannon2013-06-151-24/+25
|
* Issues #18088, 18089: IntroduceBrett Cannon2013-05-311-0/+202
| | | | | | | | | | | | | | | | | | | | | importlib.abc.Loader.init_module_attrs() and implement importlib.abc.InspectLoader.load_module(). The importlib.abc.Loader.init_module_attrs() method sets the various attributes on the module being loaded. It is done unconditionally to support reloading. Typically people used importlib.util.module_for_loader, but since that's a decorator there was no way to override it's actions, so init_module_attrs() came into existence to allow for overriding. This is also why module_for_loader is now pending deprecation (having its other use replaced by importlib.util.module_to_load). All of this allowed for importlib.abc.InspectLoader.load_module() to be implemented. At this point you can now implement a loader with nothing more than get_code() (which only requires get_source(); package support requires is_package()). Thanks to init_module_attrs() the implementation of load_module() is basically a context manager containing 2 methods calls, a call to exec(), and a return statement.
* Issue #18072: Implement get_code() for importlib.abc.InspectLoader andBrett Cannon2013-05-281-8/+88
| | | | ExecutionLoader.
* Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.Brett Cannon2013-05-261-3/+47
| | | | | | | While the previous location was fine, it makes more sense to have the method higher up in the inheritance chain, especially at a point where get_source() is defined which is the earliest source_to_code() could programmatically be used in the inheritance tree in importlib.abc.
* Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/returnBrett Cannon2013-04-091-10/+425
| | | | | | | | | | the default exception/value when called instead of raising/returning NotimplementedError/NotImplemented (except where appropriate). This should allow for the ABCs to act as the bottom/end of the MRO with expected default results. As part of this work, also make importlib.abc.Loader.module_repr() optional instead of an abstractmethod.
* Issue #15641: Clean up deprecated classes from importlibAndrew Svetlov2012-11-051-17/+1
| | | | Patch by Taras Lyapun.
* Issue #15502: Finish bringing importlib.abc in line with the currentBrett Cannon2012-08-101-0/+2
| | | | | | | | | 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-021-1/+6
| | | | the import protocols given PEP 420. Original patch by Eric Snow.
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-201-0/+96
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.