summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeccallbacks.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Enhance message for UnicodeEncodeError and UnicodeTranslateError.Walter Dörwald2003-08-121-3/+35
| | | | | If there is only one bad character it will now be printed in a form that is a valid Python string.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-3/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Use the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace()Walter Dörwald2003-04-291-7/+1
|
* Whitespace normalization.Tim Peters2003-02-191-2/+2
|
* Change the treatment of positions returned by PEP293Walter Dörwald2003-01-311-22/+74
| | | | | | | | | | | | | | | | error handers in the Unicode codecs: Negative positions are treated as being relative to the end of the input and out of bounds positions result in an IndexError. Also update the PEP and include an explanation of this in the documentation for codecs.register_error. Fixes a small bug in iconv_codecs: if the position from the callback is negative *add* it to the size instead of substracting it. From SF patch #677429.
* Add comments and remove duplicate tests.Walter Dörwald2003-01-201-26/+34
|
* Make the test scripts work again with narrow Python builds.Walter Dörwald2003-01-091-1/+1
|
* Add a few test cases to increase code coverage:Walter Dörwald2003-01-081-0/+115
| | | | | | | | | | | | | | | From: 69.73% of 294 source lines executed in file ./Modules/_codecsmodule.c 79.47% of 487 source lines executed in file Python/codecs.c 78.45% of 3643 source lines executed in file Objects/unicodeobject.c To: 70.41% of 294 source lines executed in file ./Modules/_codecsmodule.c 82.75% of 487 source lines executed in file Python/codecs.c 80.76% of 3638 source lines executed in file Objects/unicodeobject.c This actually unearthed a bug in the handling of None values in PyUnicode_EncodeCharmap.
* Fix typo in comment.Walter Dörwald2002-11-251-1/+1
|
* Update character names.Martin v. Löwis2002-11-231-3/+3
|
* Whitespace normalization.Tim Peters2002-11-091-5/+5
|
* Add a test case that checks that the proper exception is raisesWalter Dörwald2002-09-061-0/+15
| | | | | when the replacement from an encoding error callback is itself unencodable.
* PEP 293 implemention (from SF patch http://www.python.org/sf/432401)Walter Dörwald2002-09-021-0/+483