From 9bd1401bbbbc828b457cda4a5753d643333e08cb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 29 Oct 2001 07:18:02 +0000 Subject: [PATCH] Use sendall() in the stream test instead of send(). --- Lib/test/test_socketserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index d3cd5a6bcfe..19b5bf58f2d 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -58,7 +58,7 @@ def testdgram(proto, addr): def teststream(proto, addr): s = socket.socket(proto, socket.SOCK_STREAM) s.connect(addr) - s.send(teststring) + s.sendall(teststring) buf = data = receive(s, 100) while data and '\n' not in buf: data = receive(s, 100)