cpython/Lib/test/test_importlib
Miss Islington (bot) 76873ca6b1
[3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843)
Fix test_importlib.test_side_effect_import() (GH-104840)

Wait until the thread spawn by the import completes to avoid dangling
threads. With this fix, the following command no longer fails:

./python -m test --fail-env-changed test_importlib -m test_side_effect_import -F -j20
(cherry picked from commit 426950993f)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-05-25 02:35:34 +02:00
..
builtin [3.11] GH-102700: allow built-in modules to be submodules (GH-103162) (GH-103322) 2023-04-06 16:06:02 -07:00
data bpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150) 2021-12-16 15:49:42 -05:00
data01
data02
data03
extension [3.11] gh-103247: clear the module cache in a test in test_importlib/extensions/test_loader.py (GH-104226) (#104345) 2023-05-10 07:53:19 -07:00
frozen bpo-46425: fix direct invocation of test_importlib (GH-30682) 2022-01-22 18:05:05 +02:00
import_ gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653) 2022-06-12 23:29:59 -07:00
namespace_pkgs
namespacedata01 bpo-42129: Add support for resources in namespaces (GH-24670) 2021-03-04 13:43:00 -05:00
partial bpo-43517: Fix false positive in detection of circular imports (#24895) 2021-03-20 20:07:44 +01:00
resources bpo-46125: Refactor tests to test traversable API directly. Includes changes from importlib_resources 5.4.0. (GH-30189) 2021-12-18 21:28:49 -05:00
source bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
zipdata01 bpo-42129: Add support for resources in namespaces (GH-24670) 2021-03-04 13:43:00 -05:00
zipdata02 bpo-42129: Add support for resources in namespaces (GH-24670) 2021-03-04 13:43:00 -05:00
__init__.py
__main__.py
abc.py
fixtures.py [3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875) 2022-11-05 06:55:04 -07:00
stubs.py bpo-39595: Improve zipfile.Path performance (#18406) 2020-02-11 21:58:47 -05:00
test_abc.py bpo-46425: fix direct invocation of test_importlib (GH-30682) 2022-01-22 18:05:05 +02:00
test_api.py gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653) 2022-06-12 23:29:59 -07:00
test_compatibilty_files.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_contents.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_files.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_lazy.py bpo-46425: fix direct invocation of test_importlib (GH-30682) 2022-01-22 18:05:05 +02:00
test_locks.py bpo-40280: Detect missing threading on WASM platforms (GH-32352) 2022-04-07 09:22:47 +02:00
test_main.py [3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875) 2022-11-05 06:55:04 -07:00
test_metadata_api.py [3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875) 2022-11-05 06:55:04 -07:00
test_namespace_pkgs.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
test_open.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_path.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_pkg_import.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) 2021-04-05 13:11:23 +09:00
test_read.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_reader.py bpo-38693: Prefer f-strings in importlib.resources (importlib_resources 5.0.6). (GH-26387) 2021-05-26 13:16:11 -07:00
test_resource.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
test_spec.py bpo-46425: fix direct invocation of test_importlib (GH-30682) 2022-01-22 18:05:05 +02:00
test_threaded_import.py [3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843) 2023-05-25 02:35:34 +02:00
test_util.py [3.11] Update the magic number in test_util.py (GH-95714) (#95716) 2022-08-05 15:43:10 +01:00
test_windows.py bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) 2022-02-02 19:54:27 +00:00
test_zip.py bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799) 2022-01-22 21:38:26 -05:00
threaded_import_hangers.py bpo-19696: Move threaded_import_hangers (GH-14655) 2019-07-12 14:22:05 -07:00
update-zips.py gh-91298: Refine traversable (apply changes from importlib_resources 5.7.1) (#91623) 2022-04-17 11:10:36 -04:00
util.py gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972) 2022-10-15 08:22:38 -07:00