cpython/Lib/test/test_importlib
Carl Meyer b193fa996a bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834)
In some development setups it is inconvenient or impossible to write bytecode
caches to the code tree, but the bytecode caches are still useful. The
PYTHONPYCACHEPREFIX environment variable allows specifying an alternate
location for cached bytecode files, within which a directory tree mirroring the code
tree will be created. This cache tree is then used (for both reading and writing)
instead of the local `__pycache__` subdirectory within each source directory.

Exposed at runtime as sys.pycache_prefix (defaulting to None), and can
be set from the CLI as "-X pycache_prefix=path".

Patch by Carl Meyer.
2018-06-16 14:40:56 +10:00
..
builtin bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
data01 bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
data02 bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
data03 bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
extension bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) 2018-05-28 14:11:20 +02:00
frozen Issue #23277: Remove unused sys and os imports 2016-04-24 07:31:42 +03:00
import_ bpo-33169: Remove values of None from sys.path_importer_cache when invalidating caches (GH-6402) 2018-04-06 16:10:18 -07:00
namespace_pkgs Issue #21097: Move test_namespace_pkgs into test_importlib. 2014-03-29 15:57:44 -06:00
source bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
zipdata01 bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
zipdata02 bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
__init__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
__main__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
abc.py Remove unused imports. 2016-12-16 20:00:15 +02:00
test_abc.py bpo-32248: Implement importlib.abc.ResourceReader (GH-4892) 2017-12-15 16:29:35 -08:00
test_api.py bpo-33169: Remove values of None from sys.path_importer_cache when invalidating caches (GH-6402) 2018-04-06 16:10:18 -07:00
test_lazy.py Issue #26186: Remove the restriction that built-in and extension 2016-06-25 10:58:17 -07:00
test_locks.py bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
test_namespace_pkgs.py bpo-32303 - Consistency fixes for namespace loaders (#5481) 2018-02-02 15:15:58 -05:00
test_open.py bpo-32248: Fix test_importlib.test_open() (#5213) 2018-01-17 15:21:50 +01:00
test_path.py bpo-32248 - Implement importlib.resources (#4911) 2017-12-30 15:18:06 -05:00
test_read.py bpo-33151: Handle submodule resources (GH-6268) 2018-03-27 09:59:38 -07:00
test_resource.py bpo-33755: Fix importlib.resources isolation tests (#7412) 2018-06-05 09:40:45 -07:00
test_spec.py Issue #26667: Add path-like object support to importlib.util. 2016-09-07 18:39:18 -07:00
test_util.py bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834) 2018-06-16 14:40:56 +10:00
test_windows.py Issue #25985: sys.version_info is now used instead of sys.version 2016-02-11 13:10:36 +02:00
util.py bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834) 2018-06-16 14:40:56 +10:00