From: Guido van Rossum Date: Thu, 13 Jun 2002 15:03:01 +0000 (+0000) Subject: Fix a typo. X-Git-Tag: v2.3c1~5351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfad1a9039df367c9a403e2b777fe2690f3b5b88;p=thirdparty%2FPython%2Fcpython.git Fix a typo. Add a sleep (yuck!) to _testRecvFrom() so the server can set up first. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 6beadd298d36..cbe1ec0560c8 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):