Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-102795: Fix use of poll in test_epoll's test_control_and_wait (GH-102796)#104173

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 4, 2023
edited by bedevere-bot
Loading

This test can fail unnecessarily. In the test we wait for events on two
file descriptors. This is done in a single call to select.epoll's poll()
function. However, it is valid for the OS to return only one event via
poll() and the next via a subsequent call to poll(). This rarely
happens, but it can cause the test to fail despite properly functioning
polling.

Instead, we poll a second time when necessary.
(cherry picked from commitc9ecd3e)

Co-authored-by: Kevin KrakauerkevinGC@users.noreply.github.com

pythonGH-102796)This test can fail unnecessarily. In the test we wait for events on twofile descriptors. This is done in a single call to select.epoll's poll()function. However, it is valid for the OS to return only one event viapoll() and the next via a subsequent call to poll(). This rarelyhappens, but it can cause the test to fail despite properly functioningpolling.Instead, we poll a second time when necessary.(cherry picked from commitc9ecd3e)Co-authored-by: Kevin Krakauer <kevinGC@users.noreply.github.com>
Copy link
Member

@vstinnervstinner 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

@vstinner
Copy link
Member

vstinner commentedMay 6, 2023
edited
Loading

Oh, Python 3.11 tets.support doesn't have busy_wait(). I added it to Python 3.12. I don't think that this very specific test enhancement is needed for 3.11. It's an old test.

@miss-islingtonmiss-islington deleted the backport-c9ecd3e-3.11 branchMay 6, 2023 01:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner approved these changes

Assignees

No one assigned

Labels

awaiting mergetestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@miss-islington@vstinner@bedevere-bot@kevinGC@iritkatriel

[8]ページ先頭

©2009-2025 Movatter.jp