cpython/Lib/test/test_importlib
Gregory P. Smith ce720d3e06
bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718)
Fix compileall.compile_dir() ddir= behavior on sub-packages.

Fixes compileall.compile_dir's ddir parameter and compileall command
line flag `-d` to no longer write the wrong pathname to the generated
pyc file for submodules beneath the root of the directory tree being
compiled.  This fixes a regression introduced with Python 3.5.

Tests backported from GH 02673352b5, the
implementation is different due to intervening code changes.  But still
quiet simple.

Why was the bug ever introduced?  The refactoring to add parallel
execution kept the ddir -> dfile computations but discarded the results
instead of sending them to compile_file().  This fixes that.  Lack of tests
meant this went unnoticed.
2020-03-01 10:42:56 -08:00
..
builtin
data cross port importlib-metadata PR GH-76 (GH-13903) 2019-06-07 14:44:03 -07:00
data01
data02
data03
extension bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) 2018-05-28 14:11:20 +02:00
frozen
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
source Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 13:42:54 -07:00
zipdata01
zipdata02
__init__.py
__main__.py
abc.py
fixtures.py bpo-39595: Improve zipfile.Path performance (GH-18406) (GH-18472) 2020-02-11 22:21:32 -05:00
stubs.py bpo-39595: Improve zipfile.Path performance (GH-18406) (GH-18472) 2020-02-11 22:21:32 -05:00
test_abc.py bpo-25711: Rewrite zipimport in pure Python. (GH-6809) 2018-09-18 22:22:29 +03:00
test_api.py Fix typo in test_api.py. (GH-16119) 2019-09-13 10:49:09 -07:00
test_lazy.py bpo-36766: Typos in docs and code comments (GH-13116) 2019-05-06 14:57:17 -04:00
test_locks.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_main.py bpo-39595: Improve zipfile.Path performance (GH-18406) (GH-18472) 2020-02-11 22:21:32 -05:00
test_metadata_api.py [3.8] bpo-38086: Sync importlib.metadata with importlib_metadata 0.21. (GH-15840) (#15861) 2019-09-10 15:58:29 +01:00
test_namespace_pkgs.py bpo-35843: Implement __getitem__ for _NamespacePath (GH-11690) 2019-03-08 10:58:00 -08:00
test_open.py
test_path.py
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
test_util.py [3.8] bpo-37830: Fix compilation of break and continue in finally. (GH-15320) (GH-15456) 2019-08-24 13:41:53 +03:00
test_windows.py
test_zip.py bpo-37697: Sync with importlib_metadata 0.19 (GH-14993) (GH-14995) 2019-07-28 15:45:46 -04:00
util.py bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) 2020-03-01 10:42:56 -08:00