summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-13 15:03:01 +0000
committerGuido van Rossum <guido@python.org>2002-06-13 15:03:01 +0000
commit9d7f4a56656f090a331616a4fde59165e5f343e8 (patch)
tree2b158b8c901d103c8b3146d2d2e427810af6ca27 /Lib
parent1b0a0b716f267e40bad13de9a0d32a7ea73b2001 (diff)
downloadcpython-9d7f4a56656f090a331616a4fde59165e5f343e8.tar.gz
Fix a typo.
Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 6beadd298d..cbe1ec0560 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):