[New-bugs-announce] [issue35347] test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization

STINNER Victor report at bugs.python.org
Thu Nov 29 04:32:02 EST 2018


New submission from STINNER Victor <vstinner at redhat.com>:

Failure seen on the Windows XP buildbot:

https://buildbot.python.org/all/#/builders/45/builds/288

0:02:14 [ 35/404/1] test_socket failed
test test_socket failed -- Traceback (most recent call last):
  File "d:\cygwin\home\db3l\buildarea\2.7.bolen-windows\build\lib\test\test_socket.py", line 1020, in testRecv
    self.fail("Error trying to do non-blocking recv.")
AssertionError: Error trying to do non-blocking recv.

In fact, the master branch still uses the weak 100 ms sleep as synchronization primitive :-(

Attached PR replaces time.sleep() with a threading.Event().

----------
components: Tests
messages: 330671
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_socket: NonBlockingTCPTests.testRecv() uses a weak 100 ms sleep as synchronization
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35347>
_______________________________________


More information about the New-bugs-announce mailing list