Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] Fix test_importlib.test_side_effect_import() (GH-104840) #104842

Merged
merged 1 commit into from
May 25, 2023

Conversation

miss-islington
Copy link
Contributor

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 4269509)

Co-authored-by: Victor Stinner vstinner@python.org

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 4269509)

Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@brettcannon
Copy link
Member

@vstinner did you mean to leave this open after approving, or did you forget the auto-merge label?

@vstinner vstinner merged commit 51eb009 into python:3.12 May 25, 2023
25 checks passed
@miss-islington miss-islington deleted the backport-4269509-3.12 branch May 25, 2023 00:36
@vstinner
Copy link
Member

@vstinner did you mean to leave this open after approving, or did you forget the auto-merge label?

I'm not used to the new workflow. I merged this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants