Kaydet (Commit) da201fa2 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Try to fix issue #16264 (test_logging failure on some buildbots).

üst 186370b4
...@@ -1441,9 +1441,12 @@ class SocketHandlerTest(BaseTest): ...@@ -1441,9 +1441,12 @@ class SocketHandlerTest(BaseTest):
self.assertEqual(self.log_output, "spam\neggs\n") self.assertEqual(self.log_output, "spam\neggs\n")
def test_noserver(self): 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 # Kill the server
self.server.stop(2.0) 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: try:
raise RuntimeError('Deliberate mistake') raise RuntimeError('Deliberate mistake')
except RuntimeError: except RuntimeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment