summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_charmapcodec.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix testcodec.py and test_charmapcodec.pyWalter Dörwald2007-05-231-15/+15
|
* Rip out all the u"..." literals and calls to unicode().Guido van Rossum2007-05-021-15/+15
|
* Fix the encodings package codec search function to only searchMarc-André Lemburg2006-02-191-2/+13
| | | | | | inside its own package. Fixes problem reported in patch #1433198. Add codec search function for codec test codec.
* 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.
* Port test_charmapcodec to PyUnit. From SF patch #662807Walter Dörwald2003-02-141-28/+32
|
* Committing and closing SF patch #441348 to help Jython to pass this test.Finn Bock2001-08-231-1/+1
|
* Whitespace normalization. Leaving tokenize_tests.py alone for now.Tim Peters2001-01-181-2/+1
|
* Changed name of codec to full path name. This allows importingMarc-André Lemburg2001-01-171-1/+1
| | | | the test_charmapcodec test via the test package.
* Moved the test codec definition to a new module and updated the test andMarc-André Lemburg2001-01-101-54/+33
| | | | | | | codec to test all charmap codec features. As side-effect of moving the test codec into a new module, the encodings package codec import mechanism is checked as well.
* This patch adds a new feature to the builtin charmap codec:Marc-André Lemburg2001-01-061-0/+65
the mapping dictionaries can now contain 1-n mappings, meaning that character ordinals may be mapped to strings or Unicode object, e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by the complete string or Unicode object instead of just one character. Another feature introduced by the patch is that of mapping oridnals to the emtpy string. This allows removing characters. The patch is different from patch #103100 in that it does not cause a performance hit for the normal use case of 1-1 mappings. Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.