diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 23:05:13 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 23:05:13 (GMT) |
commit | 76a31a6bff3b0e809fbf08dd6e572e4e55b8fcfc (patch) | |
tree | 1eb08d313fb09cc7bf1ac51e14d3d0f4a20660b7 /Lib/test/test_codecs.py | |
parent | a9e73640bf86f4bbbbee15cd7a1af6299a0c49dd (diff) | |
download | cpython-76a31a6bff3b0e809fbf08dd6e572e4e55b8fcfc.zip cpython-76a31a6bff3b0e809fbf08dd6e572e4e55b8fcfc.tar.gz cpython-76a31a6bff3b0e809fbf08dd6e572e4e55b8fcfc.tar.bz2 |
Cleanup decode_code_page_stateful() and encode_code_page()
* Fix decode_code_page_errors() result
* Inline decode_code_page() and encode_code_page_chunk()
* Replace the PyUnicodeObject type by PyObject
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index ffd2d79..4901362 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -1980,6 +1980,9 @@ class CodePageTest(unittest.TestCase): )) def test_incremental(self): + decoded = codecs.code_page_decode(932, b'\x82', 'strict', False) + self.assertEqual(decoded, ('', 0)) + decoded = codecs.code_page_decode(932, b'\xe9\x80\xe9', 'strict', False) |