diff options
author | Kevin Krakauer <kevinGC@users.noreply.github.com> | 2023-05-04 14:38:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 14:38:20 (GMT) |
commit | c9ecd3ee75b472bb0a7538e0288c5cfea146da83 (patch) | |
tree | f3baf59dbee4781b1fd13cc0eaf2c61f2f466898 /Misc | |
parent | 45398ad51220b63b8df08fb5551c6b736205daed (diff) | |
download | cpython-c9ecd3ee75b472bb0a7538e0288c5cfea146da83.zip cpython-c9ecd3ee75b472bb0a7538e0288c5cfea146da83.tar.gz cpython-c9ecd3ee75b472bb0a7538e0288c5cfea146da83.tar.bz2 |
gh-102795: Fix use of poll in test_epoll's test_control_and_wait (#102796)
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2023-03-17-22-00-47.gh-issue-102795.z21EoC.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-03-17-22-00-47.gh-issue-102795.z21EoC.rst b/Misc/NEWS.d/next/Tests/2023-03-17-22-00-47.gh-issue-102795.z21EoC.rst new file mode 100644 index 0000000..fe2afff --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-03-17-22-00-47.gh-issue-102795.z21EoC.rst @@ -0,0 +1 @@ +fix use of poll in test_epoll's test_control_and_wait |