diff options
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |