Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
3c919cf140170a03c20ec68a8fe63586b718d057
/
Lib
/
test
/
test_codecs.py
f4b6186
#691291: codecs.open() should not convert end of lines on reading and writing.
by Florent Xicluna
· 15 years ago
b0f5adc
use assert[Not]IsInstance where appropriate
by Ezio Melotti
· 15 years ago
e9741f3
Issue #6922: Fix an infinite loop when trying to decode an invalid
by Georg Brandl
· 16 years ago
5c8da86
convert usage of fail* to assert*
by Benjamin Peterson
· 16 years ago
a7fb408
Issue 3739: The unicode-internal encoder now reports the number of *characters*
by Walter Dörwald
· 16 years ago
5087980
The incremental decoder for utf-7 must preserve its state between calls.
by Amaury Forgeot d'Arc
· 17 years ago
183744d
Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())
by Walter Dörwald
· 17 years ago
fc7e72d
Fix typo in comment.
by Walter Dörwald
· 17 years ago
6e39080
Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.
by Walter Dörwald
· 18 years ago
4234827
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
by Walter Dörwald
· 18 years ago
39b8b6a
Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig'))
by Walter Dörwald
· 18 years ago
abd8a33
Whitespace normalization.
by Tim Peters
· 19 years ago
1ead698
I'm assuming this is correct, it fixes the tests so they pass again
by Neal Norwitz
· 19 years ago
98c70ac
Add tests for incremental codecs with an errors argument.
by Walter Dörwald
· 19 years ago
2c9838e
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
by Georg Brandl
· 19 years ago
5b4e1c2
Fix the new EncodedFile test to work with big endian platforms.
by Georg Brandl
· 19 years ago
8f99f81
Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
by Georg Brandl
· 19 years ago
6d3d339
Verify the crash due to EncodingMap not initialized does not return
by Neal Norwitz
· 19 years ago
78a0be6
Add a BufferedIncrementalEncoder class that can be used for implementing
by Walter Dörwald
· 19 years ago
15be5ec
Call encode()/decode() with final==True as the last call in the
by Walter Dörwald
· 19 years ago
9ae019b
Add tests for the C APIs PyCodec_IncrementalEncoder() and
by Walter Dörwald
· 19 years ago
abb02e5
Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass
by Walter Dörwald
· 19 years ago
ca19943
If size is specified, try to read at least size characters.
by Walter Dörwald
· 19 years ago
412ed3b
Patch #1177307: UTF-8-Sig codec.
by Martin v. Löwis
· 19 years ago
690402f
Add tests to increase code coverage in Python/codecs.c and Python/exceptions.c.
by Walter Dörwald
· 19 years ago
e22d339
Add tests for various error cases and for readbuffer_encode() and
by Walter Dörwald
· 19 years ago
d1c1e10
Part of SF patch #1313939: Speedup charmap decoding by extending
by Walter Dörwald
· 20 years ago
a47d1c0
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
by Walter Dörwald
· 20 years ago
8b59514
Make IDNA return an empty string when the input is empty. Fixes #1163178.
by Martin v. Löwis
· 20 years ago
c9878e1
Make attributes and local variables in the StreamReader str objects instead
by Walter Dörwald
· 20 years ago
43148c8
Update test to the current readline() behaviour.
by Walter Dörwald
· 20 years ago
7a6dc13
Fix for SF bug #1175396: readline() will now read one more character, if
by Walter Dörwald
· 20 years ago
729c31f
Reset internal buffers when seek() is called. This fixes SF bug #1156259.
by Walter Dörwald
· 20 years ago
a9620d1
Fix stupid typo: Don't read from a writer.
by Walter Dörwald
· 20 years ago
1f1d252
Add a test for UTF-16 reading where the byte sequence doesn't start with a BOM.
by Walter Dörwald
· 20 years ago
9fa0946
Fix and test for SF bug #1098990: codec readline() splits lines apart.
by Walter Dörwald
· 20 years ago
ee1d247
Add a test that checks the basic functionality of every encoding.
by Walter Dörwald
· 20 years ago
e57d7b1
The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()
by Walter Dörwald
· 20 years ago
063e1e8
Trigger a few error cases in Modules/_codecsmodule.c.
by Walter Dörwald
· 21 years ago
af5c7cf
SF #1048865: Fix a trivial typo that breaks StreamReader.readlines()
by Hye-Shik Chang
· 21 years ago
6965203
SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
by Walter Dörwald
· 21 years ago
3f41974
Add generic codecs.encode() and .decode() APIs that don't impose
by Marc-André Lemburg
· 21 years ago
27f8836
Whitespace normalization.
by Tim Peters
· 21 years ago
a1dde13
Add test case for unicode(somestring, "idna").
by Martin v. Löwis
· 21 years ago
21d3a32
Combine the functionality of test_support.run_unittest()
by Walter Dörwald
· 22 years ago
0eadaac
Whitespace normalization.
by Tim Peters
· 22 years ago
b5c4b7b
Skip nameprep test 3.43, as we do allow unassigned characters. The test
by Martin v. Löwis
· 22 years ago
2548c73
Implement IDNA (Internationalized Domain Names in Applications).
by Martin v. Löwis
· 22 years ago
29273c8
Fix for [ 543344 ] Interpreter crashes when recoding; suggested
by Marc-André Lemburg
· 22 years ago
8709a42
Check whether a string resize is necessary at the end
by Walter Dörwald
· 23 years ago
04f357c
Get rid of relative imports in all unittests. Now anything that
by Barry Warsaw
· 23 years ago
2e2be37
Change the PyUnit-based tests to use the test_main() approach. This
by Fred Drake
· 24 years ago
a37171d
Test by Martin v. Loewis for the new UTF-16 codec handling of BOM marks.
by Marc-André Lemburg
· 24 years ago