]> granicus.if.org Git - python/commitdiff
Fix a typo.
authorGuido van Rossum <guido@python.org>
Thu, 13 Jun 2002 15:03:01 +0000 (15:03 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 13 Jun 2002 15:03:01 +0000 (15:03 +0000)
Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.

Lib/test/test_socket.py

index 6beadd298d36fb7b80f6d0699bf73523baf09678..cbe1ec0560c8a5f440220505fe7fb75de9d3d50e 100644 (file)
@@ -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):