summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Close #17839: support bytes-like objects in base64 moduleNick Coghlan2013-10-021-0/+18
| | | | | | | | | | | | | | | | | | This mostly affected the encodebytes and decodebytes function (which are used by base64_codec) Also added a test to ensure all bytes-bytes codecs can handle memoryview input and tests for handling of multidimensional and non-bytes format input in the modern base64 API.
* | Add tests for raw-unicode-escape codec.Serhiy Storchaka2013-01-291-0/+50
|\ \ | |/
| * Add tests for raw-unicode-escape codec.Serhiy Storchaka2013-01-291-0/+50
| |\
| | * Add tests for raw-unicode-escape codec.Serhiy Storchaka2013-01-291-0/+51
| | |
* | | Clean up escape-decode decoder tests.Serhiy Storchaka2013-01-291-36/+40
|\ \ \ | |/ /
| * | Clean up escape-decode decoder tests.Serhiy Storchaka2013-01-291-36/+40
| |\ \ | | |/
| | * Clean up escape-decode decoder tests.Serhiy Storchaka2013-01-291-36/+40
| | |
* | | Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.Serhiy Storchaka2013-01-291-0/+84
|\ \ \ | |/ /
| * | Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.Serhiy Storchaka2013-01-291-0/+84
| |\ \ | | |/
| | * Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.Serhiy Storchaka2013-01-291-0/+85
| | |
* | | Issue #16975: Fix error handling bug in the escape-decode bytes decoder.Serhiy Storchaka2013-01-251-0/+44
|\ \ \ | |/ /
| * | Issue #16975: Fix error handling bug in the escape-decode bytes decoder.Serhiy Storchaka2013-01-251-0/+44
| |\ \ | | |/
| | * Issue #16975: Fix error handling bug in the escape-decode bytes decoder.Serhiy Storchaka2013-01-251-0/+44
| | |
* | | Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"Serhiy Storchaka2013-01-151-0/+46
|\ \ \ | |/ / | | | | | | in any mapping, not only in an unicode string.
| * | Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"Serhiy Storchaka2013-01-151-0/+46
| |\ \ | | |/ | | | | | | in any mapping, not only in an unicode string.
| | * Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"Serhiy Storchaka2013-01-151-0/+46
| | | | | | | | | | | | in any mapping, not only in an unicode string.
* | | #16918: merge with 3.3.Ezio Melotti2013-01-111-46/+13
|\ \ \ | |/ /
| * | #16918: test_codecs now works with unittest test discovery. Patch by Zachary ↵Ezio Melotti2013-01-111-46/+12
| | | | | | | | | | | | Ware.
| * | Merge fix for broken/disabled test.Ezio Melotti2013-01-111-1/+2
| |\ \ | | |/
| | * Enable a broken test and fix it.Ezio Melotti2013-01-111-1/+2
| | |
* | | Issue #11461: Fix the incremental UTF-16 decoder. Original patch bySerhiy Storchaka2013-01-081-8/+40
|\ \ \ | |/ / | | | | | | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters.
| * | Issue #11461: Fix the incremental UTF-16 decoder. Original patch bySerhiy Storchaka2013-01-081-8/+40
| |\ \ | | |/ | | | | | | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters.
| | * Issue #11461: Fix the incremental UTF-16 decoder. Original patch bySerhiy Storchaka2013-01-081-8/+40
| | | | | | | | | | | | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters.
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-2/+2
|/ / | | | | | | Patch by Serhiy Storchaka.
* | #16336: merge with 3.2.Ezio Melotti2012-11-031-0/+2
|\ \ | |/
| * #16336: fix input checking in the surrogatepass error handler. Patch by ↵Ezio Melotti2012-11-031-0/+2
| | | | | | | | Serhiy Storchaka.
* | merge with 3.2Philip Jenvey2012-10-271-0/+2
|\ \ | |/
| * bounds check for bad data (thanks amaury)Philip Jenvey2012-10-271-0/+2
| |
* | Issue #15379: Fix passing of non-BMP characters as integers for the charmap ↵Antoine Pitrou2012-09-231-0/+116
|\ \ | |/ | | | | | | | | decoder (already working as unicode strings). Patch by Serhiy Storchaka.
| * Issue #15379: Fix passing of non-BMP characters as integers for the charmap ↵Antoine Pitrou2012-09-231-0/+105
| | | | | | | | | | | | decoder (already working as unicode strings). Patch by Serhiy Storchaka.
* | Port additional tests from #14579 (the issue is already fixed).Antoine Pitrou2012-07-201-4/+26
|\ \ | |/
| * Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after ↵Antoine Pitrou2012-07-201-4/+26
| | | | | | | | | | | | error handling. Patch by Serhiy Storchaka.
| * Backport 0398f07d4827 (fix for weird buildbot failures)Antoine Pitrou2011-07-261-1/+1
| |
* | Write tests for invalid characters (U+00110000)Victor Stinner2011-12-091-0/+16
| | | | | | | | | | | | | | | | | | Test the following functions: * codecs.raw_unicode_escape_decode() * PyUnicode_FromWideChar() * PyUnicode_FromUnicode() * "unicode_internal" and "unicode_escape" decoders
* | #13406: fix more deprecation warnings and move the deprecation of ↵Ezio Melotti2011-11-171-8/+6
| | | | | | | | unicode-internal earlier in the code.
* | #13406: correct the error message in check_warnings too.Ezio Melotti2011-11-161-3/+3
| |
* | #13406: silence deprecation warnings in test_codecs.Ezio Melotti2011-11-161-8/+15
| |
* | "unicode_internal" codec has been deprecated: fix related testsVictor Stinner2011-11-151-12/+25
| |
* | Cleanup decode_code_page_stateful() and encode_code_page()Victor Stinner2011-11-031-0/+3
| | | | | | | | | | | | * Fix decode_code_page_errors() result * Inline decode_code_page() and encode_code_page_chunk() * Replace the PyUnicodeObject type by PyObject
* | Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8)Victor Stinner2011-10-261-60/+116
| |
* | Issue #12281: Fix test_codecs.test_cp932() on Windows XPVictor Stinner2011-10-181-7/+3
| | | | | | | | | | Cool! Decoding b'\x81\x00abc' from cp932 with replace error handler is now giving the same result on all Windows versions.
* | Issue #12281: Skip code page tests on non-Windows platformsVictor Stinner2011-10-181-6/+10
| |
* | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignoreVictor Stinner2011-10-181-0/+198
| | | | | | | | | | error handlers on all Windows versions. The MBCS codec is now supporting all error handlers, instead of only replace to encode and ignore to decode.
* | Fix text failures when ctypes is not availableAntoine Pitrou2011-10-051-2/+7
| | | | | | | | (followup to Victor's 85d11cf67aa8 and 7a50e549bd11)
* | Fix test_codecs for Windows: check size of wchar_t, not sys.maxunicodeVictor Stinner2011-09-291-41/+44
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-0/+4
| |
* | Try to fix weird buildbot failuresAntoine Pitrou2011-07-261-1/+1
| |
* | Add a test for issue #1813: getlocale() failing under a Turkish localeAntoine Pitrou2011-07-241-0/+14
|\ \ | |/ | | | | (not a problem under 3.x)
| * Issue #1813: Fix codec lookup under Turkish locales.Antoine Pitrou2011-07-241-0/+14
| |
* | Revert my commit 3555cf6f9c98: "Issue #8796: codecs.open() calls the builtinVictor Stinner2011-05-271-106/+46
| | | | | | | | | | | | | | | | open() function instead of using StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec module. Use the builtin open() function or io.TextIOWrapper instead." "It has not been approved !" wrote Marc-Andre Lemburg.