Skip to content

[3.12] gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431) #109609

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

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 20, 2023

SubprocessProtocol process_exited() method can be called before
pipe_data_received() and pipe_connection_lost() methods. Document it
and adapt the test for that.

Revert commit 282edd7.
_child_watcher_callback() calls immediately _process_exited(): don't
add an additional delay with call_soon(). The reverted change didn't
make _process_exited() more determistic: it can still be called
before pipe_connection_lost() for example.

(cherry picked from commit ced6924)

Co-authored-by: Victor Stinner [email protected]
Co-authored-by: Davide Rizzo [email protected]


📚 Documentation preview 📚: https://cpython-previews--109609.org.readthedocs.build/

…ythonGH-109431)

SubprocessProtocol process_exited() method can be called before
pipe_data_received() and pipe_connection_lost() methods. Document it
and adapt the test for that.

Revert commit 282edd7.
_child_watcher_callback() calls immediately _process_exited(): don't
add an additional delay with call_soon(). The reverted change didn't
make _process_exited() more determistic: it can still be called
before pipe_connection_lost() for example.

(cherry picked from commit ced6924)

Co-authored-by: Victor Stinner <[email protected]>
Co-authored-by: Davide Rizzo <[email protected]>
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.

@Yhg1s Yhg1s merged commit 5ba9d2b into python:3.12 Oct 2, 2023
@miss-islington miss-islington deleted the backport-ced6924-3.12 branch October 2, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants