From e312416809b4d0bafacc610760cf5474f0a478f8 Mon Sep 17 00:00:00 2001 From: Facundo Batista Date: Fri, 25 May 2007 03:47:19 +0000 Subject: [PATCH] Fixing stupid error, and introducing a sleep, to see if the other thread is awakened and finish sending data. --- Lib/test/test_urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 469a5d2542..22628369be 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: -- 2.50.1