Commit 9bd1401b authored by Guido van Rossum's avatar Guido van Rossum

Use sendall() in the stream test instead of send().

parent cb656882
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment