[Python-checkins] python/dist/src/Lib/test test_multibytecodec.py,
1.2, 1.3
perky at users.sourceforge.net
perky at users.sourceforge.net
Tue Jan 20 04:11:50 EST 2004
- Previous message: [Python-checkins] python/dist/src/Lib/test list_tests.py, 1.1,
1.2 seq_tests.py, 1.1, 1.2 test_list.py, 1.1,
1.2 test_tuple.py, 1.1, 1.2 test_userlist.py, 1.11, 1.12
- Next message: [Python-checkins] python/dist/src/Lib/encodings aliases.py, 1.21,
1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv13473
Modified Files:
test_multibytecodec.py
Log Message:
Test not the standard utf-8 codec but gb18030 which is the most complex
codec in multibytecodec consumers.
Index: test_multibytecodec.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_multibytecodec.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_multibytecodec.py 18 Jan 2004 20:29:55 -0000 1.2
--- test_multibytecodec.py 20 Jan 2004 09:11:48 -0000 1.3
***************
*** 63,72 ****
def test_nullcoding(self):
! self.assertEqual(''.decode('utf-8'), u'')
! self.assertEqual(unicode('', 'utf-8'), u'')
! self.assertEqual(u''.encode('utf-8'), '')
def test_str_decode(self):
! self.assertEqual('abcd'.encode('utf-8'), 'abcd')
def test_main():
--- 63,72 ----
def test_nullcoding(self):
! self.assertEqual(''.decode('gb18030'), u'')
! self.assertEqual(unicode('', 'gb18030'), u'')
! self.assertEqual(u''.encode('gb18030'), '')
def test_str_decode(self):
! self.assertEqual('abcd'.encode('gb18030'), 'abcd')
def test_main():
- Previous message: [Python-checkins] python/dist/src/Lib/test list_tests.py, 1.1,
1.2 seq_tests.py, 1.1, 1.2 test_list.py, 1.1,
1.2 test_tuple.py, 1.1, 1.2 test_userlist.py, 1.11, 1.12
- Next message: [Python-checkins] python/dist/src/Lib/encodings aliases.py, 1.21,
1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list