From: Guido van Rossum Date: Mon, 29 Oct 2001 07:18:02 +0000 (+0000) Subject: Use sendall() in the stream test instead of send(). X-Git-Tag: v2.2.1c1~991 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bd1401bbbbc828b457cda4a5753d643333e08cb;p=python Use sendall() in the stream test instead of send(). --- diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index d3cd5a6bcf..19b5bf58f2 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)