]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] Fix test_importlib.test_side_effect_import() (GH-104840) (#104842)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 May 2023 00:36:13 +0000 (17:36 -0700)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 00:36:13 +0000 (02:36 +0200)
commit51eb009cef155f02c59d05ce1f0d93c50ea9085a
tree8035dfa846aef174b2923d645e9d7e0bcfb6b27b
parenta06423388618424e2c6dab2ab503fdca5a953e38
[3.12] Fix test_importlib.test_side_effect_import() (GH-104840) (#104842)

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 426950993f6a39cdf3f6a3333ac8b518833c7e61)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_importlib/test_threaded_import.py