Skip to content

Commit e312416

Browse files
Fixing stupid error, and introducing a sleep, to see if the
other thread is awakened and finish sending data.
1 parent b4dfafa commit e312416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_urllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ def server(evt):
556556
conn.send("1 Hola mundo\n")
557557
cantdata = 0
558558
while cantdata < 13:
559-
print "len:", cantdata
560559
data = conn.recv(13-cantdata)
561560
cantdata += len(data)
561+
time.sleep(.3)
562562
conn.send("2 No more lines\n")
563563
conn.close()
564564
except socket.timeout:

0 commit comments

Comments
 (0)