]> granicus.if.org Git - python/commitdiff
Use sendall() in the stream test instead of send().
authorGuido van Rossum <guido@python.org>
Mon, 29 Oct 2001 07:18:02 +0000 (07:18 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Oct 2001 07:18:02 +0000 (07:18 +0000)
Lib/test/test_socketserver.py

index d3cd5a6bcfe1338a77ca8ad9fc2a116992eea596..19b5bf58f2db12848d47140b1404d795b5926ab9 100644 (file)
@@ -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)