summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixup/simplify another nested context manager.Raymond Hettinger2009-06-121-6/+3
|
* Tests for case-senstivity were not being skipped for darwin when installed on aBrett Cannon2009-05-116-45/+37
| | | | | | | case-sensitive filesystems -- which is not the default case. Along the way also fixed the skipping of tests when sys.dont_write_bytecode is true. Closes issue #5442 again.
* fix name againBenjamin Peterson2009-04-041-1/+1
|
* fix nameBenjamin Peterson2009-04-041-1/+1
|
* fix namingBenjamin Peterson2009-04-031-3/+3
|
* os.path.listdir -> os.listdirBenjamin Peterson2009-04-031-1/+1
|
* importlib.test.source.test_abc_loader was making a bad assumption that all fileBrett Cannon2009-04-021-16/+21
| | | | | | paths used '/' as a path separator. Fixes issue #5646.
* Make a test in importlib have a more robust test value.Brett Cannon2009-04-021-1/+1
|
* Give a more informative message on an importlib test upon failure.Brett Cannon2009-04-021-1/+3
|
* Check that on a platform that is expected to have a case-insensitive filesystemBrett Cannon2009-04-021-1/+8
| | | | | | that is in fact the case. Closes issue #5442.
* Fix importlib.machinery.PathFinder.find_module() to essentially skip over NoneBrett Cannon2009-03-301-0/+19
| | | | | | entries in sys.path_importer_cache. While this differs from semantics in how __import__ works, it prevents any implicit semantics from taking hold with users.
* Add simple tests for __import__ for future optimizations to importlib.Brett Cannon2009-03-301-0/+82
|
* Implement InspectLoader for FrozenImporter.Brett Cannon2009-03-151-1/+35
|
* Implement InspectLoader for BuiltinImporter.Brett Cannon2009-03-153-16/+48
|
* A few more docstring/API cleanups for importlib.Brett Cannon2009-03-151-1/+1
|
* Finish properly hiding importlib implementation code.Brett Cannon2009-03-129-28/+34
|
* Implement importlib.util.set_loader: a decorator to automatically setBrett Cannon2009-03-103-4/+9
| | | | __loader__ on modules.
* Implement get_source for importlib.abc.PyLoader using source_path and get_data.Brett Cannon2009-03-101-9/+32
|
* Introduce importlib.abc. The module contains various ABCs related to importsBrett Cannon2009-03-095-98/+438
| | | | | | | (mostly stuff specified by PEP 302). There are two ABCs, PyLoader and PyPycLoader, which help with implementing source and source/bytecode loaders by implementing load_module in terms of other methods. This removes a lot of gritty details loaders typically have to worry about.
* Remove a dead XXX comment.Brett Cannon2009-03-091-1/+0
|
* Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode.Brett Cannon2009-03-091-1/+5
|
* Skip case-sensitivity tests for extension modules if _testcapi cannot be found.Brett Cannon2009-03-081-0/+2
|
* Rename importlib.util.set___package__ to set_package.Brett Cannon2009-03-041-3/+3
|
* Add a test for importlib.import_module.Brett Cannon2009-03-041-1/+10
|
* Expose importlib.util.set___package__.Brett Cannon2009-03-021-1/+50
|
* Refactor source and bytecode file loaders in importlib so that thereBrett Cannon2009-02-212-13/+13
| | | | are source-only and source/bytecode loaders.
* Separate out finder for source and source/bytecode.Brett Cannon2009-02-212-2/+2
|
* Do some cleanup in importlib:Brett Cannon2009-02-217-9/+9
| | | | | | | + Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers.
* Implement the more specific PEP 302 semantics for loaders and what happens uponBrett Cannon2009-02-171-0/+69
| | | | | | load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely.
* Change importlib.machinery.PathFinder to not have implicit semantics (that'sBrett Cannon2009-02-152-34/+35
| | | | not handled by importlib._bootstrap._DefaultPathFinder).
* Add the missing importlib.test.extension.util.Brett Cannon2009-02-071-0/+21
|
* Factor out helper code from importlib.test.extension.test_path_hook.Brett Cannon2009-02-075-40/+21
|
* Move importlib completely over to using rpartition and accepting the emptyBrett Cannon2009-02-072-2/+3
| | | | string for top-level modules.
* Move importlib's built-in importer to use rpartition for __package__.Brett Cannon2009-02-071-1/+1
|
* Move importlib's frozen importer over to rpartition for setting __package__.Brett Cannon2009-02-071-1/+1
|
* Rewrite the code implementing __import__ for importlib. Now it is much simplerBrett Cannon2009-02-075-150/+15
| | | | | | | | | 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).
* Finish implementing tests for importlib.machinery.PathFinder by testing thatBrett Cannon2009-02-061-4/+19
| | | | implicit hooks are handled properly.
* Add tests for using sys.path_hooks by importlib.machinery.PathFinder.Brett Cannon2009-02-051-2/+10
|
* Implement test for sys.path_importer_cache having None forBrett Cannon2009-02-051-2/+14
| | | | importlib.machinery.PathFinder.
* Begin writing tests for importlib.machinery.PathFinder.Brett Cannon2009-02-051-1/+57
|
* Move import semantic util code to importlib.test.import_.util.Brett Cannon2009-02-019-88/+99
|
* Rename importlib.test.support to importlib.test.util.Brett Cannon2009-02-0121-191/+159
|
* Do not execute the .pyc/.pyo files as well as the .py files.Brett Cannon2009-02-011-1/+4
|
* Split out support code that is specific to source tests out ofBrett Cannon2009-02-017-110/+123
| | | | importlib.test.support to importlib.test.source.util.
* Move source loader tests (including reload tests) over toBrett Cannon2009-02-012-73/+72
| | | | importlib.test.abc.LoaderTests.
* Fix importlib.machinery.FrozenImporter.load_module() to set __package__Brett Cannon2009-02-011-18/+51
| | | | | properly. Discovered by also moving the loader tests over to importlib.test.abc.LoaderTests.
* Move extension module loader tests over to importlib.test.abc.LoaderTests.Brett Cannon2009-02-011-3/+22
|
* Move built-in loader tests to importlib.test.abc.LoaderTests.Brett Cannon2009-02-011-3/+23
|
* Merge testing ABCs for importlib into importlib.test.abc.Brett Cannon2009-01-306-47/+45
|
* Initial take on importlib.test.loader_tests.Brett Cannon2009-01-271-0/+61
|