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 469a5d2..2262836 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -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: