[Python-checkins] python/dist/src/Lib/test test_socket.py,1.54,1.55
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 08 Aug 2002 13:28:37 -0700
- Previous message: [Python-checkins] python/dist/src/Lib/encodings __init__.py,1.10,1.11 ascii.py,1.1,1.2 base64_codec.py,1.2,1.3 charmap.py,1.2,1.3 cp037.py,1.3,1.4 cp1006.py,1.3,1.4 cp1026.py,1.3,1.4 cp1140.py,1.1,1.2 cp1250.py,1.3,1.4 cp1251.py,1.3,1.4 cp1252.py,1.3,1.4 cp1253.py,1.3,1.4 cp1254.py,1.3,1.4 cp1255.py,1.3,1.4 cp1256.py,1.3,1.4 cp1257.py,1.3,1.4 cp1258.py,1.3,1.4 cp424.py,1.3,1.4 cp437.py,1.3,1.4 cp500.py,1.3,1.4 cp737.py,1.3,1.4 cp775.py,1.3,1.4 cp850.py,1.3,1.4 cp852.py,1.3,1.4 cp855.py,1.3,1.4 cp856.py,1.4,1.5 cp857.py,1.3,1.4 cp860.py,1.3,1.4 cp861.py,1.3,1.4 cp862.py,1.3,1.4 cp863.py,1.3,1.4 cp864.py,1.3,1.4 cp865.py,1.3,1.4 cp866.py,1.3,1.4 cp869.py,1.3,1.4 cp874.py,1.3,1.4 cp875.py,1.3,1.4 hex_codec.py,1.2,1.3 iso8859_1.py,1.3,1.4 iso8859_10.py,1.3,1.4 iso8859_13.py,1.3,1.4 iso8859_14.py,1.3,1.4 iso8859_15.py,1.3,1.4 iso8859_2.py,1.3,1.4 iso8859_3.py,1.3,1.4 iso8859_4.py,1.3,1.4 iso8859_5.py,1.3,1.4 iso8859_6.py,1.3,1.4 iso8859_7.py,1.3,1.4 iso8859_8.py,1.3,1.4 iso8859_9.py,1.3,1.4 koi8_r.py,1.3,1.4 latin_1.py,1.1,1.2 mac_cyrillic.py,1.3,1.4 mac_greek.py,1.3,1.4 mac_iceland.py,1.3,1.4 mac_latin2.py,1.3,1.4 mac_roman.py,1.3,1.4 mac_turkish.py,1.3,1.4 mbcs.py,1.2,1.3 palmos.py,1.1,1.2 raw_unicode_escape.py,1.1,1.2 rot_13.py,1.2,1.3 undefined.py,1.1,1.2 unicode_escape.py,1.1,1.2 unicode_internal.py,1.1,1.2 utf_16.py,1.3,1.4 utf_16_be.py,1.2,1.3 utf_16_le.py,1.2,1.3 utf_7.py,1.1,1.2 utf_8.py,1.1,1.2 uu_codec.py,1.2,1.3 zlib_codec.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Modules socketmodule.c,1.240,1.241
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv10494
Modified Files:
test_socket.py
Log Message:
testSendAll(): loop until all data is read; this was necessary at
least on OS/2 (see note on SF patch 555085 by A I MacIntyre) but
looks like the test *could* fail on any other platform too -- there's
no guarantee that recv() reads all data.
Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** test_socket.py 8 Aug 2002 20:19:19 -0000 1.54
--- test_socket.py 8 Aug 2002 20:28:34 -0000 1.55
***************
*** 379,389 ****
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):
--- 379,389 ----
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.assertEqual(msg, 'f' * 2048)
def _testSendAll(self):
- Previous message: [Python-checkins] python/dist/src/Lib/encodings __init__.py,1.10,1.11 ascii.py,1.1,1.2 base64_codec.py,1.2,1.3 charmap.py,1.2,1.3 cp037.py,1.3,1.4 cp1006.py,1.3,1.4 cp1026.py,1.3,1.4 cp1140.py,1.1,1.2 cp1250.py,1.3,1.4 cp1251.py,1.3,1.4 cp1252.py,1.3,1.4 cp1253.py,1.3,1.4 cp1254.py,1.3,1.4 cp1255.py,1.3,1.4 cp1256.py,1.3,1.4 cp1257.py,1.3,1.4 cp1258.py,1.3,1.4 cp424.py,1.3,1.4 cp437.py,1.3,1.4 cp500.py,1.3,1.4 cp737.py,1.3,1.4 cp775.py,1.3,1.4 cp850.py,1.3,1.4 cp852.py,1.3,1.4 cp855.py,1.3,1.4 cp856.py,1.4,1.5 cp857.py,1.3,1.4 cp860.py,1.3,1.4 cp861.py,1.3,1.4 cp862.py,1.3,1.4 cp863.py,1.3,1.4 cp864.py,1.3,1.4 cp865.py,1.3,1.4 cp866.py,1.3,1.4 cp869.py,1.3,1.4 cp874.py,1.3,1.4 cp875.py,1.3,1.4 hex_codec.py,1.2,1.3 iso8859_1.py,1.3,1.4 iso8859_10.py,1.3,1.4 iso8859_13.py,1.3,1.4 iso8859_14.py,1.3,1.4 iso8859_15.py,1.3,1.4 iso8859_2.py,1.3,1.4 iso8859_3.py,1.3,1.4 iso8859_4.py,1.3,1.4 iso8859_5.py,1.3,1.4 iso8859_6.py,1.3,1.4 iso8859_7.py,1.3,1.4 iso8859_8.py,1.3,1.4 iso8859_9.py,1.3,1.4 koi8_r.py,1.3,1.4 latin_1.py,1.1,1.2 mac_cyrillic.py,1.3,1.4 mac_greek.py,1.3,1.4 mac_iceland.py,1.3,1.4 mac_latin2.py,1.3,1.4 mac_roman.py,1.3,1.4 mac_turkish.py,1.3,1.4 mbcs.py,1.2,1.3 palmos.py,1.1,1.2 raw_unicode_escape.py,1.1,1.2 rot_13.py,1.2,1.3 undefined.py,1.1,1.2 unicode_escape.py,1.1,1.2 unicode_internal.py,1.1,1.2 utf_16.py,1.3,1.4 utf_16_be.py,1.2,1.3 utf_16_le.py,1.2,1.3 utf_7.py,1.1,1.2 utf_8.py,1.1,1.2 uu_codec.py,1.2,1.3 zlib_codec.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Modules socketmodule.c,1.240,1.241
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]