diff options
author | Guido van Rossum <guido@python.org> | 2002-06-13 15:03:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-13 15:03:01 (GMT) |
commit | dfad1a9039df367c9a403e2b777fe2690f3b5b88 (patch) | |
tree | d986be640b399c9c849c88c2c0c37cd66f010954 /Lib/test/test_socket.py | |
parent | 022640dea0b2d73e24b07b0edb321a39fd921080 (diff) | |
download | cpython-dfad1a9039df367c9a403e2b777fe2690f3b5b88.zip cpython-dfad1a9039df367c9a403e2b777fe2690f3b5b88.tar.gz cpython-dfad1a9039df367c9a403e2b777fe2690f3b5b88.tar.bz2 |
Fix a typo.
Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.
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): |