diff options
author | Guido van Rossum <guido@python.org> | 2002-06-13 15:03:01 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-13 15:03:01 +0000 |
commit | 9d7f4a56656f090a331616a4fde59165e5f343e8 (patch) | |
tree | 2b158b8c901d103c8b3146d2d2e427810af6ca27 /Lib | |
parent | 1b0a0b716f267e40bad13de9a0d32a7ea73b2001 (diff) | |
download | cpython-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.py | 3 |
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): |