Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da201fa

Browse files
committed
Try to fix issue #16264 (test_logging failure on some buildbots).
1 parent 186370b commit da201fa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/test_logging.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,9 +1441,12 @@ def test_output(self):
14411441
self.assertEqual(self.log_output, "spam\neggs\n")
14421442

14431443
def test_noserver(self):
1444+
# Avoid timing-related failures due to SocketHandler's own hard-wired
1445+
# one-second timeout on socket.create_connection() (issue #16264).
1446+
self.sock_hdlr.retryStart = 2.5
14441447
# Kill the server
14451448
self.server.stop(2.0)
1446-
#The logging call should try to connect, which should fail
1449+
# The logging call should try to connect, which should fail
14471450
try:
14481451
raise RuntimeError('Deliberate mistake')
14491452
except RuntimeError:

0 commit comments

Comments
 (0)