]> granicus.if.org Git - python/commitdiff
Try to fix issue #16264 (test_logging failure on some buildbots).
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 21 Oct 2012 15:18:27 +0000 (17:18 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 21 Oct 2012 15:18:27 +0000 (17:18 +0200)
Lib/test/test_logging.py

index 1d93b47a3872c5642852526032766e506d8dc708..92514533d959ea8f5b26fda9740948fd8b3aa700 100644 (file)
@@ -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: