Brett Cannon
91cf882b36
Refactor source and bytecode file loaders in importlib so that there
...
are source-only and source/bytecode loaders.
2009-02-21 05:41:15 +00:00
Brett Cannon
4afab6b30b
Separate out finder for source and source/bytecode.
2009-02-21 03:31:35 +00:00
Brett Cannon
2dee597e05
Do some cleanup in importlib:
...
+ 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.
2009-02-21 03:15:37 +00:00
Brett Cannon
06c9d96b70
Move importlib completely over to using rpartition and accepting the empty
...
string for top-level modules.
2009-02-07 01:52:25 +00:00
Brett Cannon
bcb26c53c0
Rename importlib.test.support to importlib.test.util.
2009-02-01 04:00:05 +00:00
Brett Cannon
4ee2cdaf65
Split out support code that is specific to source tests out of
...
importlib.test.support to importlib.test.source.util.
2009-02-01 03:08:31 +00:00
Brett Cannon
30b047dc35
Move source loader tests (including reload tests) over to
...
importlib.test.abc.LoaderTests.
2009-02-01 02:05:11 +00:00
Brett Cannon
f254a75176
Merge testing ABCs for importlib into importlib.test.abc.
2009-01-30 00:22:35 +00:00
Brett Cannon
2c5c79cfc4
Tests of case-sensitivity were being executed on OSs which did not have a
...
case-insensitive file system, leading to test failures. This was due to using
the TestCase objects directly instead of the guard in the test_main() function.
Move over to a class decorator instead to control if the tests should be run.
2009-01-18 06:55:05 +00:00
Brett Cannon
23cbd8a656
Add initial implementation of importlib. See the NOTES files for what is
...
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.
2009-01-18 00:24:28 +00:00