[Python-checkins] r55568 - python/trunk/Lib/test/test_urllib.py
facundo.batista
python-checkins at python.org
Fri May 25 05:47:26 CEST 2007
Author: facundo.batista
Date: Fri May 25 05:47:19 2007
New Revision: 55568
Modified:
python/trunk/Lib/test/test_urllib.py
Log:
Fixing stupid error, and introducing a sleep, to see if the
other thread is awakened and finish sending data.
Modified: python/trunk/Lib/test/test_urllib.py
==============================================================================
--- python/trunk/Lib/test/test_urllib.py (original)
+++ python/trunk/Lib/test/test_urllib.py Fri May 25 05:47:19 2007
@@ -556,9 +556,9 @@
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:
More information about the Python-checkins
mailing list