Skip to content

bpo-46679: Don't ignore timeout argument in test.support.wait_process. #31205

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

Conversation

notarealdeveloper
Copy link
Contributor

@notarealdeveloper notarealdeveloper commented Feb 7, 2022

The function wait_process in Lib/test/support/__init__.py ignores its timeout argument. This argument is useful, for example, in tests that need to determine whether a deadlock has been fixed (e.g., the test added in #30310).

https://bugs.python.org/issue46679

@@ -0,0 +1,2 @@
The function ``wait_process`` in ``Lib/test/support/__init__.py`` no longer
Copy link
Member

Choose a reason for hiding this comment

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

NEWS are not required for test-only changes. We need them for user-facing changes only 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know! Thanks! :)

@notarealdeveloper
Copy link
Contributor Author

@kumaraditya303 Done. :)

@MaxwellDupre
Copy link
Contributor

The wait_process function has changed significantly since your changes in the latest 3.12 could you please check?

@kumaraditya303 kumaraditya303 requested review from vstinner and removed request for vstinner October 1, 2022 17:24
@vstinner
Copy link
Member

vstinner commented Oct 3, 2022

I fixed this issue with commit 0ba8027. But IMO it's still interesting to fix this typo in Python 3.10 and 3.11. Can you please create a PR for the 3.11 branch?

@kumaraditya303
Copy link
Contributor

Closing as it is fixed on main. If you are interested, feel free to create 3.11 backport as Victor suggested.

@vstinner
Copy link
Member

This issue got fixed in 3.11 by commit a9a8c87 and backported to 3.10 as commit ae5317d: see issue gh-90867.

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

Successfully merging this pull request may close these issues.

9 participants