From dfad1a9039df367c9a403e2b777fe2690f3b5b88 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 13 Jun 2002 15:03:01 +0000 Subject: Fix a typo. Add a sleep (yuck!) to _testRecvFrom() so the server can set up first. --- Lib/test/test_socket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 6beadd2..cbe1ec0 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -359,13 +359,14 @@ class BasicUDPTest(ThreadedUDPSocketTest): self.cli.sendto(MSG, 0, (HOST, PORT)) def testRecvFrom(self): - """Testing recfrom() over UDP.""" + """Testing recvfrom() over UDP.""" msg, addr = self.serv.recvfrom(len(MSG)) hostname, port = addr ##self.assertEqual(hostname, socket.gethostbyname('localhost')) self.assertEqual(msg, MSG) def _testRecvFrom(self): + time.sleep(1) # Give server a chance to set up self.cli.sendto(MSG, 0, (HOST, PORT)) class NonBlockingTCPTests(ThreadedTCPSocketTest): -- cgit v0.12