diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-04-21 11:51:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 11:51:53 (GMT) |
commit | a2c877c3985aba4adb19755e21f477e1c639cfd9 (patch) | |
tree | 142f2a09e27d1ea33df0703f5ab61c738dcc2cc5 /Modules/faulthandler.c | |
parent | 35f3d240ee5f0958034bd500949b08764e36f4dc (diff) | |
download | cpython-a2c877c3985aba4adb19755e21f477e1c639cfd9.zip cpython-a2c877c3985aba4adb19755e21f477e1c639cfd9.tar.gz cpython-a2c877c3985aba4adb19755e21f477e1c639cfd9.tar.bz2 |
bpo-30106: Fix test_asyncore.test_quick_connect() (#1234)
test_quick_connect() runs a thread up to 50 seconds, whereas the
socket is connected in 0.2 second and then the thread is expected to
end in less than 3 second. On Linux, the thread ends quickly because
select() seems to always return quickly. On FreeBSD, sometimes
select() fails with timeout and so the thread runs much longer than
expected.
Fix the thread timeout to fix a race condition in the test.
Diffstat (limited to 'Modules/faulthandler.c')
0 files changed, 0 insertions, 0 deletions