*** test_socket.py.orig Fri Jul 26 06:47:14 2002 --- test_socket.py Thu Aug 1 22:00:18 2002 *************** *** 368,380 **** def testSendAll(self): """Testing sendall() with a 2048 byte string over TCP.""" while 1: read = self.cli_conn.recv(1024) if not read: break ! self.assert_(len(read) == 1024, "Error performing sendall.") ! read = filter(lambda x: x == 'f', read) ! self.assert_(len(read) == 1024, "Error performing sendall.") def _testSendAll(self): big_chunk = 'f' * 2048 --- 368,382 ---- def testSendAll(self): """Testing sendall() with a 2048 byte string over TCP.""" + msg = '' while 1: read = self.cli_conn.recv(1024) if not read: break ! msg += read ! self.assert_(len(msg) == 2048, "Error performing sendall.") ! msg = filter(lambda x: x == 'f', msg) ! self.assert_(len(msg) == 2048, "Error performing sendall.") def _testSendAll(self): big_chunk = 'f' * 2048