summaryrefslogtreecommitdiff
path: root/Lib/test/test_codecs.py
AgeCommit message (Expand)AuthorLines
2009-09-17Issue #6922: Fix an infinite loop when trying to decode an invalidGeorg Brandl-0/+12
2009-06-30convert usage of fail* to assert*Benjamin Peterson-4/+4
2009-05-06Issue 3739: The unicode-internal encoder now reports the number of *characters*Walter Dörwald-2/+7
2007-11-20The incremental decoder for utf-7 must preserve its state between calls.Amaury Forgeot d'Arc-2/+12
2007-11-19Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())Walter Dörwald-0/+44
2007-11-19Fix typo in comment.Walter Dörwald-1/+1
2007-08-17Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.Walter Dörwald-0/+134
2007-04-12Fix utf-8-sig incremental decoder, which didn't recognise a BOM when theWalter Dörwald-0/+5
2006-11-23Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig'))Walter Dörwald-0/+4
2006-11-03Whitespace normalization.Tim Peters-2/+2
2006-10-29I'm assuming this is correct, it fixes the tests so they pass againNeal Norwitz-0/+1
2006-10-29Add tests for incremental codecs with an errorsWalter Dörwald-0/+24
2006-10-29Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.Georg Brandl-0/+2
2006-10-29Fix the new EncodedFile test to work with big endian platforms.Georg Brandl-2/+2
2006-10-29Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, andGeorg Brandl-1/+28
2006-06-13Verify the crash due to EncodingMap not initialized does not returnNeal Norwitz-0/+6
2006-04-14Add a BufferedIncrementalEncoder class that can be used for implementingWalter Dörwald-3/+70
2006-04-14Call encode()/decode() with final==True as the last call in theWalter Dörwald-0/+4
2006-03-18Add tests for the C APIs PyCodec_IncrementalEncoder() andWalter Dörwald-2/+14
2006-03-15Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclassWalter Dörwald-0/+57
2006-03-06If size is specified, try to read at least size characters.Walter Dörwald-5/+9
2006-01-08Patch #1177307: UTF-8-Sig codec.Martin v. Löwis-0/+28
2005-11-17Add tests to increase code coverage in Python/codecs.c and Python/exceptions.c.Walter Dörwald-0/+19
2005-11-17Add tests for various error cases and for readbuffer_encode() andWalter Dörwald-2/+67
2005-10-06Part of SF patch #1313939: Speedup charmap decoding by extendingWalter Dörwald-1/+36
2005-08-30SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complainWalter Dörwald-1/+50
2005-08-25Make IDNA return an empty string when the input is empty. Fixes #1163178.Martin v. Löwis-0/+6
2005-07-20Make attributes and local variables in the StreamReader str objects insteadWalter Dörwald-0/+17
2005-04-21Update test to the current readline() behaviour.Walter Dörwald-0/+2
2005-04-04Fix for SF bug #1175396: readline() will now read one more character, ifWalter Dörwald-9/+82
2005-03-14Reset internal buffers when seek() is called. This fixes SF bug #1156259.Walter Dörwald-0/+15
2005-02-08Fix stupid typo: Don't read from a writer.Walter Dörwald-2/+2
2005-02-04Add a test for UTF-16 reading where the byte sequence doesn't start withWalter Dörwald-0/+9
2005-01-10Fix and test for SF bug #1098990: codec readline() splits lines apart.Walter Dörwald-0/+30
2004-12-29Add a test that checks the basic functionality of every encoding.Walter Dörwald-1/+179
2004-12-21The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()Walter Dörwald-13/+80
2004-10-28Trigger a few error cases in Modules/_codecsmodule.c.Walter Dörwald-0/+14
2004-10-17SF #1048865: Fix a trivial typo that breaks StreamReader.readlines()Hye-Shik Chang-1/+12
2004-09-07SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now supportWalter Dörwald-1/+117
2004-07-10Add generic codecs.encode() and .decode() APIs that don't imposeMarc-André Lemburg-1/+11
2004-07-08Whitespace normalization.Tim Peters-1/+1
2004-03-24Add test case for unicode(somestring, "idna").Martin v. Löwis-1/+6
2003-05-01Combine the functionality of test_support.run_unittest()Walter Dörwald-7/+7
2003-04-24Whitespace normalization.Tim Peters-2/+2
2003-04-18Skip nameprep test 3.43, as we do allow unassigned characters. The testMartin v. Löwis-2/+4
2003-04-18Implement IDNA (Internationalized Domain Names in Applications).Martin v. Löwis-0/+296
2003-02-04Fix for [ 543344 ] Interpreter crashes when recoding; suggestedMarc-André Lemburg-0/+9
2002-09-03Check whether a string resize is necessary at the endWalter Dörwald-1/+8
2002-07-23Get rid of relative imports in all unittests. Now anything thatBarry Warsaw-1/+2
2001-09-20Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake-1/+7