Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 022640d commit dfad1a9Copy full SHA for dfad1a9
1 file changed
Lib/test/test_socket.py
@@ -359,13 +359,14 @@ def _testSendtoAndRecv(self):
359
self.cli.sendto(MSG, 0, (HOST, PORT))
360
361
def testRecvFrom(self):
362
- """Testing recfrom() over UDP."""
+ """Testing recvfrom() over UDP."""
363
msg, addr = self.serv.recvfrom(len(MSG))
364
hostname, port = addr
365
##self.assertEqual(hostname, socket.gethostbyname('localhost'))
366
self.assertEqual(msg, MSG)
367
368
def _testRecvFrom(self):
369
+ time.sleep(1) # Give server a chance to set up
370
371
372
class NonBlockingTCPTests(ThreadedTCPSocketTest):
0 commit comments