aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/util.py
Commit message (Collapse)AuthorAge
* gh-116303: Skip test module dependent tests if test modules are unavailable ↵Erlend E. Aasland2024-04-03
| | | | (#117341)
* gh-114099 - Add iOS framework loading machinery. (GH-116454)Russell Keith-Magee2024-03-19
| | | | Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* GH-115979: update test_importlib to work under WASI SDK 21 (GH-116754)Brett Cannon2024-03-13
|
* gh-98040: Remove find_loader, find_module and other deprecated APIs (#98059)Barry Warsaw2023-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove deprecated classes from pkgutil * Remove some other PEP 302 obsolescence * Use find_spec instead of load_module * Remove more tests of PEP 302 obsolete APIs * Remove another bunch of tests using obsolete load_modules() * Remove deleted names from __all__ * Remove obsolete footnote * imp is removed * Remove `imp` from generated stdlib names * What's new and blurb * Update zipimport documentation for the removed methods * Fix some Windows tests * Remove any test (or part of a test) that references `find_module()`. * Use assertIsNone() / assertIsNotNone() consistently. * Update Doc/reference/import.rst * We don't need pkgutil._get_spec() any more either * test.test_importlib.fixtures.NullFinder * ...BadLoaderFinder.find_module * ...test_api.InvalidatingNullFinder.find_module * ...test.test_zipimport test of z.find_module * Suppress cross-references to find_loader and find_module * Suppress cross-references to Finder * Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* gh-98040: Remove just the `imp` module (#98573)Barry Warsaw2023-04-28
|
* gh-98627: Add the _testsinglephase Module (gh-99039)Eric Snow2022-11-08
| | | | | This makes it more clear that a given test is definitely testing against a single-phase init (legacy) extension module. The new module is a companion to _testmultiphase. https://github.com/python/cpython/issues/98627
* gh-95971: Turn @writes_bytecode_files to skip when not running (#95972)Jeong YunWon2022-10-15
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-44771: Apply changes from importlib_resources 5.2.1 (GH-27436)Jason R. Coombs2021-07-29
| | | | | | | * bpo-44771: Apply changes from importlib_resources@3b24bd6307 * Add blurb * Exclude namespacedata01 from eol conversion.
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181)Inada Naoki2021-04-05
| | | | | | * Fix test_shutil * Fix test_imp * Fix test_import * Fix test_importlib
* bpo-40275: Use new test.support helper submodules in tests (GH-21727)Hai Shi2020-08-04
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21314)Hai Shi2020-07-06
|
* bpo-39769: Fix compileall ddir for subpkgs. (GH-18676)Gregory P. Smith2020-02-28
| | | | | | | | | | 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. Also marks the _new_ in 3.9 from PR #16012 parameters to compile_dir as keyword only (as that is the only way they will be used) and fixes an omission of them in one place from the docs.
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-30
|
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-30
| | | | | | | | | | | | | | | | | | | | | | | | * Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
* bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. ↵Carl Meyer2018-06-16
| | | | | | | | | | | | | | | (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.
* bpo-33755: Fix importlib.resources isolation tests (#7412)Barry Warsaw2018-06-05
|
* Implement the get_resource_reader() API for file system imports (#5168)Barry Warsaw2018-01-15
|
* bpo-32248 - Implement importlib.resources (#4911)Barry Warsaw2017-12-30
| | | | Port importlib_resources to importlib.resources
* Merge for #27083Brett Cannon2016-07-16
|\
| * Fix regressions introduced by fixes for issue #27083.Brett Cannon2016-07-16
| |
* | Issue #26896: Disambiguate uses of "importer" with "finder".Brett Cannon2016-07-08
|/ | | | Thanks to Oren Milman for the patch.
* Issue #24192: Fix namespace package imports.Eric Snow2015-05-15
|
* Issue #21503: Use test_both() consistently in test_importlib.Eric Snow2014-05-16
|
* Issue #19721: Consolidate test_importlib utility code into a singleBrett Cannon2014-05-09
| | | | module.
* Issue 19944: Fix importlib.find_spec() so it imports parents as needed.Eric Snow2014-01-25
| | | | The function is also moved to importlib.util.
* Issue #19712: Update test.test_importlib.import_ to test/use PEP 451Brett Cannon2013-12-06
| | | | where appropriate.
* Make test_importlib output easier to trace back to the failing testBrett Cannon2013-11-22
| | | | class.
* Issue #16803: Move test_importlib.test_util to use both frozen andBrett Cannon2013-10-18
| | | | source code.
* Issue #16803: Run test.test_importlib.test_abc under bothBrett Cannon2013-10-04
| | | | _frozen_importlib and source.
* Issue #17177: stop using imp in test_importlibBrett Cannon2013-06-15
|
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-20
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.