From: Facundo Batista Date: Fri, 25 May 2007 03:47:19 +0000 (+0000) Subject: Fixing stupid error, and introducing a sleep, to see if the X-Git-Tag: v2.6a1~1694 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e312416809b4d0bafacc610760cf5474f0a478f8;p=thirdparty%2FPython%2Fcpython.git Fixing stupid error, and introducing a sleep, to see if the other thread is awakened and finish sending data. --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 469a5d25426b..22628369bea4 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -556,9 +556,9 @@ def server(evt): conn.send("1 Hola mundo\n") cantdata = 0 while cantdata < 13: - print "len:", cantdata data = conn.recv(13-cantdata) cantdata += len(data) + time.sleep(.3) conn.send("2 No more lines\n") conn.close() except socket.timeout: