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
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
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
partial
resources
source bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
zipdata01
zipdata02
__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
test_abc.py
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
test_contents.py
test_files.py
test_lazy.py
test_locks.py
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
test_path.py
test_pkg_import.py
test_read.py
test_reader.py
test_resource.py
test_spec.py
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
test_zip.py
threaded_import_hangers.py
update-zips.py
util.py gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972) 2022-10-15 08:22:38 -07:00