[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


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():





More information about the Python-checkins mailing list