summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2007-05-25 03:47:19 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2007-05-25 03:47:19 (GMT)
commite312416809b4d0bafacc610760cf5474f0a478f8 (patch)
treebd2d1375269b650846a28cb1a3cce3784de2f90d /Lib/test
parentb4dfafaba631afa9ce8abd65f6f4471371625a33 (diff)
downloadcpython-e312416809b4d0bafacc610760cf5474f0a478f8.zip
cpython-e312416809b4d0bafacc610760cf5474f0a478f8.tar.gz
cpython-e312416809b4d0bafacc610760cf5474f0a478f8.tar.bz2
Fixing stupid error, and introducing a sleep, to see if the
other thread is awakened and finish sending data.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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: