Skip to content

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

Merged
vstinner merged 1 commit into
python:3.12from
miss-islington:backport-4269509-3.12
May 25, 2023
Merged

[3.12] Fix test_importlib.test_side_effect_import() (GH-104840)#104842
vstinner merged 1 commit into
python:3.12from
miss-islington:backport-4269509-3.12

Conversation

@miss-islington

Copy link
Copy Markdown
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>

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.12May 25, 2023
@miss-islington
miss-islington deleted the backport-4269509-3.12 branch May 25, 2023 00:36
@vstinner

Copy link
Copy Markdown
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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issueskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@brettcannon@vstinner@bedevere-bot