mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
more test to more general test file, so it can test more things
This commit is contained in:
parent
2f560fa300
commit
a2816c2b11
2 changed files with 7 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue