]> granicus.if.org Git - python/commit
In test_io, StatefulIncrementalDecoderTest was not part of the test suite.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sat, 3 May 2008 12:21:13 +0000 (12:21 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sat, 3 May 2008 12:21:13 +0000 (12:21 +0000)
commit7684f852972901b2e55be898f316095c3acf51bc
treefa855aa9dfa7817548b203d1169b31a0e6d26719
parent64a4bbeb259026e6bb3e4a8864870b1ed35ffab2
In test_io, StatefulIncrementalDecoderTest was not part of the test suite.
And of course, the test failed:
a bytearray was used without reason in io.TextIOWrapper.tell().

The difference is that iterating over bytes (i.e. str in python2.6) returns 1-char bytes,
whereas bytearrays yield integers.
This code should still work with python3.0
Lib/io.py
Lib/test/test_io.py