summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/util.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) ↵Gregory P. Smith2020-03-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | (GH-18725) 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 02673352b5db6ca4d3dc804965facbedfe66425d, 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.. (cherry picked from commit ce720d3e0674d6ac6f1b950c20a89be4cfde7853) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* bpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434)Miss Islington (bot)2018-06-051-0/+4
| | | | | (cherry picked from commit ac1ee1badade69d5cd6d8b9112281f121183e7c0) Co-authored-by: Barry Warsaw <barry@python.org>
* Implement the get_resource_reader() API for file system imports (#5168)Barry Warsaw2018-01-151-0/+3
|
* bpo-32248 - Implement importlib.resources (#4911)Barry Warsaw2017-12-301-0/+163
| | | | Port importlib_resources to importlib.resources
* Merge for #27083Brett Cannon2016-07-161-0/+9
|\
| * Fix regressions introduced by fixes for issue #27083.Brett Cannon2016-07-161-0/+9
| |
* | Issue #26896: Disambiguate uses of "importer" with "finder".Brett Cannon2016-07-081-1/+0
|/ | | | Thanks to Oren Milman for the patch.
* Issue #24192: Fix namespace package imports.Eric Snow2015-05-161-1/+1
|
* Issue #21503: Use test_both() consistently in test_importlib.Eric Snow2014-05-161-12/+30
|
* Issue #19721: Consolidate test_importlib utility code into a singleBrett Cannon2014-05-091-5/+142
| | | | module.
* Issue 19944: Fix importlib.find_spec() so it imports parents as needed.Eric Snow2014-01-251-1/+33
| | | | The function is also moved to importlib.util.
* Issue #19712: Update test.test_importlib.import_ to test/use PEP 451Brett Cannon2013-12-061-8/+40
| | | | where appropriate.
* Make test_importlib output easier to trace back to the failing testBrett Cannon2013-11-221-0/+1
| | | | class.
* Issue #16803: Move test_importlib.test_util to use both frozen andBrett Cannon2013-10-181-0/+11
| | | | source code.
* Issue #16803: Run test.test_importlib.test_abc under bothBrett Cannon2013-10-041-0/+9
| | | | _frozen_importlib and source.
* Issue #17177: stop using imp in test_importlibBrett Cannon2013-06-151-2/+2
|
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-201-0/+140
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.