]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 May 2023 00:35:34 +0000 (17:35 -0700)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 00:35:34 +0000 (02:35 +0200)
commit76873ca6b1ad1a1eb9518f0ff7fc594ec96d0a65
treebc1f081fa4afa6357c007f10098580de6af32cff
parent3b3f2e107b8b53b5feb67ca433bfca4b1d21dedf
[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 426950993f6a39cdf3f6a3333ac8b518833c7e61)

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