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

This commit is contained in:
Guido van Rossum 2001-10-29 07:18:02 +00:00
parent cb65688218
commit 9bd1401bbb
1 changed files with 1 additions and 1 deletions

View 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)