diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2004-01-20 09:11:48 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2004-01-20 09:11:48 (GMT) |
commit | a5e719e08121d0faf2f7255161c5a66ba23c2124 (patch) | |
tree | 5a0bcd47f8a4fa86eea3dbf688da911056d0bfa9 /Lib/test | |
parent | 130189271544cd1e2cd5687ead7bb31ff48a8e0a (diff) | |
download | cpython-a5e719e08121d0faf2f7255161c5a66ba23c2124.zip cpython-a5e719e08121d0faf2f7255161c5a66ba23c2124.tar.gz cpython-a5e719e08121d0faf2f7255161c5a66ba23c2124.tar.bz2 |
Test not the standard utf-8 codec but gb18030 which is the most complex
codec in multibytecodec consumers.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_multibytecodec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index c77898b..e96afba 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -62,12 +62,12 @@ class Test_StreamWriter(unittest.TestCase): pass def test_nullcoding(self): - self.assertEqual(''.decode('utf-8'), u'') - self.assertEqual(unicode('', 'utf-8'), u'') - self.assertEqual(u''.encode('utf-8'), '') + self.assertEqual(''.decode('gb18030'), u'') + self.assertEqual(unicode('', 'gb18030'), u'') + self.assertEqual(u''.encode('gb18030'), '') def test_str_decode(self): - self.assertEqual('abcd'.encode('utf-8'), 'abcd') + self.assertEqual('abcd'.encode('gb18030'), 'abcd') def test_main(): suite = unittest.TestSuite() |