[Python-checkins] bpo-45212: Add a comment for time.sleep() in tests (GH-28414)

serhiy-storchaka webhook-mailer at python.org
Fri Sep 17 09:20:20 EDT 2021


https://github.com/python/cpython/commit/54a1760cde7bb01e5574734c389c0746762218fd
commit: 54a1760cde7bb01e5574734c389c0746762218fd
branch: main
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-09-17T16:20:15+03:00
summary:

bpo-45212: Add a comment for time.sleep() in tests (GH-28414)

Co-authored-by: Victor Stinner <vstinner at python.org>

files:
M Lib/test/test_socket.py

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 2d7cdb492b84b..d064c6705a484 100755
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -6207,6 +6207,7 @@ def _testWithTimeoutTriggeredSend(self):
     def testWithTimeoutTriggeredSend(self):
         conn = self.accept_conn()
         conn.recv(88192)
+        # bpo-45212: the wait here needs to be longer than the client-side timeout (0.01s)
         time.sleep(1)
 
     # errors



More information about the Python-checkins mailing list