summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/test_api.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-201-183/+0
| | | | | This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.
* Issue #15210: Greatly simplify the test for supporting importlibBrett Cannon2012-07-041-12/+5
| | | | | working without _frozen_importlib by moving to an import over a direct access in sys.modules.
* Issue #15210: If _frozen_importlib is not found in sys.modules byBrett Cannon2012-07-021-1/+22
| | | | importlib.__init__, then catch the KeyError raised, not ImportError.
* Issue #13959: Introduce importlib.find_loader().Brett Cannon2012-05-121-1/+49
| | | | | | The long-term goal is to deprecate imp.find_module() in favour of this API, but it will take some time as some APIs explicitly return/use what imp.find_module() returns.
* Update importlib.invalidate_caches() to be more general.Brett Cannon2012-02-271-0/+28
|
* Issue #13591: import_module potentially imports a module twice.Meador Inge2011-12-151-0/+17
|
* Fix a spelling mistake in a comment.Brett Cannon2010-07-031-1/+1
|
* Move over to using assertRaises as a context manager for importlib tests.Brett Cannon2009-08-271-1/+2
| | | | | Obviously one shouldn't do whole sale conversions like this, but I was already going through the test code and I was bored at the airport.
* Add a test for importlib.import_module.Brett Cannon2009-03-041-1/+10
|
* Rewrite the code implementing __import__ for importlib. Now it is much simplerBrett Cannon2009-02-071-2/+6
| | | | | | | | | and relies much more on meta path finders to abstract out various parts of import. As part of this the semantics for import_module tightened up and now follow __import__ much more closely (biggest thing is that the 'package' argument must now already be imported, else a SystemError is raised).
* Rename importlib.test.support to importlib.test.util.Brett Cannon2009-02-011-9/+9
|
* Add initial implementation of importlib. See the NOTES files for what isBrett Cannon2009-01-181-0/+62
planned for the package. There are no docs yet, but they are coming once the API for the first new function, importlib.import_module() is finalized.