more test to more general test file, so it can test more things

This commit is contained in:
Benjamin Peterson 2012-12-02 13:04:37 -05:00
parent 2f560fa300
commit a2816c2b11
2 changed files with 7 additions and 4 deletions

View file

@ -45,10 +45,6 @@ class Test_MultibyteCodec(unittest.TestCase):
self.assertRaises(IndexError, dec,
b'apple\x92ham\x93spam', 'test.cjktest')
def test_errorhandler_returns_bytes(self):
enc = "\u30fb\udc80".encode('gb18030', 'surrogateescape')
self.assertEqual(enc, b'\x819\xa79\x80')
def test_codingspec(self):
try:
for enc in ALL_CJKENCODINGS: