From: Antoine Pitrou Date: Sun, 21 Oct 2012 15:18:27 +0000 (+0200) Subject: Try to fix issue #16264 (test_logging failure on some buildbots). X-Git-Tag: v3.4.0a1~2203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da201fa2481a54d9a05c6b3870d4dba52d6b62f0;p=python Try to fix issue #16264 (test_logging failure on some buildbots). --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1d93b47a38..92514533d9 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1441,9 +1441,12 @@ class SocketHandlerTest(BaseTest): self.assertEqual(self.log_output, "spam\neggs\n") def test_noserver(self): + # Avoid timing-related failures due to SocketHandler's own hard-wired + # one-second timeout on socket.create_connection() (issue #16264). + self.sock_hdlr.retryStart = 2.5 # Kill the server self.server.stop(2.0) - #The logging call should try to connect, which should fail + # The logging call should try to connect, which should fail try: raise RuntimeError('Deliberate mistake') except RuntimeError: