summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/source
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 78242 via svnmerge fromBrett Cannon2010-02-191-24/+99
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78242 | brett.cannon | 2010-02-19 11:01:06 -0500 (Fri, 19 Feb 2010) | 5 lines Importlib was not matching import's handling of .pyc files where it had less then 8 bytes total in the file. Fixes issues 7361 & 7875. ........
* Merged revisions 76146 via svnmerge fromBrett Cannon2009-11-071-0/+26
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76146 | brett.cannon | 2009-11-07 15:55:05 -0800 (Sat, 07 Nov 2009) | 6 lines When trying to write new bytecode, importlib was not catching the IOError thrown if the file happened to be read-only to keep the failure silent. Fixes issue #7187. Thanks, Dave Malcolm for the report and analysis of the problem. ........
* Merged revisions 76113-76114 via svnmerge fromBrett Cannon2009-11-051-13/+10
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76113 | brett.cannon | 2009-11-04 17:17:22 -0800 (Wed, 04 Nov 2009) | 3 lines importlib.test.source.util referenced variables in the 'finally' part of a try/finally which may not have been set. ........ r76114 | brett.cannon | 2009-11-04 17:26:57 -0800 (Wed, 04 Nov 2009) | 6 lines Use tempfile.mkdtemp() instead of tempfile.tempdir for where importlib places source files for tests. Allows for concurrent execution of the tests by preventing various executions from trampling each other. Closes issue #7248. ........
* Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-134-24/+24
| | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* Backport of r74103.Brett Cannon2009-07-201-8/+8
|
* Tests for case-senstivity were not being skipped for darwin when installed on aBrett Cannon2009-05-114-35/+26
| | | | | | | 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.
* 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
|
* Finish properly hiding importlib implementation code.Brett Cannon2009-03-125-19/+25
|
* 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-093-96/+404
| | | | | | | (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.
* Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode.Brett Cannon2009-03-091-1/+5
|
* 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-213-3/+3
| | | | | | | + 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.
* Move importlib completely over to using rpartition and accepting the emptyBrett Cannon2009-02-071-1/+1
| | | | string for top-level modules.
* Rename importlib.test.support to importlib.test.util.Brett Cannon2009-02-016-9/+6
|
* Split out support code that is specific to source tests out ofBrett Cannon2009-02-016-30/+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.
* Merge testing ABCs for importlib into importlib.test.abc.Brett Cannon2009-01-301-2/+2
|
* Tests of case-sensitivity were being executed on OSs which did not have aBrett Cannon2009-01-181-2/+1
| | | | | | 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.
* Add initial implementation of importlib. See the NOTES files for what isBrett Cannon2009-01-187-0/+617
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.