diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-10-21 15:18:27 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-10-21 15:18:27 (GMT) |
commit | da201fa2481a54d9a05c6b3870d4dba52d6b62f0 (patch) | |
tree | 33d77209652b96b0184a1845efafa7b2477c12cd | |
parent | 186370b43331536808a46d1f31269ae3ba7bd63b (diff) | |
download | cpython-da201fa2481a54d9a05c6b3870d4dba52d6b62f0.zip cpython-da201fa2481a54d9a05c6b3870d4dba52d6b62f0.tar.gz cpython-da201fa2481a54d9a05c6b3870d4dba52d6b62f0.tar.bz2 |
Try to fix issue #16264 (test_logging failure on some buildbots).
-rw-r--r-- | Lib/test/test_logging.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1d93b47..9251453 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: |