summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.Serhiy Storchaka2014-11-071-0/+4
| | | | Based on patch by Martin Panter.
* Issue #22166: clear codec caches in test_codecsNick Coghlan2014-09-151-0/+14
|
* Issue #20571: skip test_readline() of test_codecs for Windows code page 65001.Victor Stinner2014-02-091-0/+3
| | | | The decoder does not support partial decoding yet for this code page.
* Issue #20538: UTF-7 incremental decoder produced inconsistant string whenSerhiy Storchaka2014-02-081-8/+33
|\ | | | | | | input was truncated in BASE64 section.
| * Issue #20538: UTF-7 incremental decoder produced inconsistant string whenSerhiy Storchaka2014-02-081-6/+33
| | | | | | | | input was truncated in BASE64 section.
* | Issue 20542: Temporarily skip failing testNick Coghlan2014-02-071-0/+2
| |
* | Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-31/+54
|\ \ | |/
| * Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-31/+54
| |
* | Issue #20520: Fixed readline test in test_codecs.Serhiy Storchaka2014-02-061-6/+15
|\ \ | |/
| * Issue #20520: Fixed readline test in test_codecs.Serhiy Storchaka2014-02-061-6/+15
| |
| * Issue #8260: The read(), readline() and readlines() methods ofSerhiy Storchaka2014-01-261-2/+34
| | | | | | | | | | codecs.StreamReader returned incomplete data when were called after readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
| * Fixed tests for issue #19279.Serhiy Storchaka2013-10-191-4/+3
| |
* | Issue #8260: The read(), readline() and readlines() methods ofSerhiy Storchaka2014-01-261-2/+34
| | | | | | | | | | codecs.StreamReader returned incomplete data when were called after readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
* | Close #20105: set __traceback__ when chaining exceptions in CNick Coghlan2014-01-261-0/+1
| |
* | Issue19619: skip zlib error test when zlib not availableZachary Ware2013-12-301-1/+2
| |
* | Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.Serhiy Storchaka2013-11-241-1/+3
| | | | | | | | Changed deprecation message in the fileinput module.
* | Issue #19668: Added support for the cp1125 encoding.Serhiy Storchaka2013-11-231-0/+1
| |
* | Close #7475: Restore binary & text transform codecsNick Coghlan2013-11-231-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | The codecs themselves were restored in Python 3.2, this completes the restoration by adding back the convenience aliases. These aliases were originally left out due to confusing errors when attempting to use them with the text encoding specific convenience methods. Python 3.4 includes several improvements to those errors, thus permitting the aliases to be restored as well.
* | Issue #19619: Blacklist non-text codecs in method APINick Coghlan2013-11-221-68/+108
| | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings.
* | Also chain codec exceptions that allow weakrefsNick Coghlan2013-11-191-5/+36
| | | | | | | | | | | | | | The zlib and hex codecs throw custom exception types with weakref support if the input type is valid, but the data fails validation. Make sure the exception chaining in the codec infrastructure can wrap those as well.
* | Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.Serhiy Storchaka2013-11-191-12/+56
| | | | | | | | | | | | | | | | | | | | The utf-16* and utf-32* encoders no longer allow surrogate code points (U+D800-U+DFFF) to be encoded. The utf-32* decoders no longer decode byte sequences that correspond to surrogate code points. The surrogatepass error handler now works with the utf-16* and utf-32* codecs. Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
* | Avoid triggering the refleak detectorNick Coghlan2013-11-151-8/+14
| |
* | Close 19609: narrow scope of codec exc chainingNick Coghlan2013-11-151-11/+26
| |
* | Close #17828: better handling of codec errorsNick Coghlan2013-11-131-24/+169
| | | | | | | | | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved
* | Issue #19279: UTF-7 decoder no more produces illegal strings.Serhiy Storchaka2013-10-191-0/+30
|\ \ | |/
| * Issue #19279: UTF-7 decoder no more produces illegal strings.Serhiy Storchaka2013-10-191-0/+30
| |
* | 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.