New submission from STINNER Victor <vstin...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35347>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to