Brett Cannon
45a5e3afe5
Issue #15168 : Move importlb.test to test.test_importlib.
...
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
2012-07-20 14:48:53 -04:00
Barry Warsaw
28a691b7fd
PEP 3147
2010-04-17 00:19:56 +00:00
Brett Cannon
cfed029c42
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 .
2009-11-05 01:26:57 +00:00
Brett Cannon
0ae4511624
importlib.test.source.util referenced variables in the 'finally' part of a
...
try/finally which may not have been set.
2009-11-05 01:17:22 +00:00
Brett Cannon
1262e7c746
Tests for case-senstivity were not being skipped for darwin when installed on a
...
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.
2009-05-11 01:47:11 +00:00
Brett Cannon
2a922ed6ad
Introduce importlib.abc. The module contains various ABCs related to imports
...
(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.
2009-03-09 03:35:50 +00:00
Brett Cannon
f2b55fb5ee
Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode.
2009-03-09 00:02:01 +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