Commit 9d7f4a56 authored by Guido van Rossum's avatar Guido van Rossum

Fix a typo.

Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.
parent 1b0a0b71
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment