diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-05 00:42:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-05 00:42:09 (GMT) |
commit | 9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0 (patch) | |
tree | a399a6f732273464722a00629b70ad5794d8ebb8 /Lib/test/test_io.py | |
parent | 03cfa7365d7fc7c1020aab3845e49356f961f767 (diff) | |
download | cpython-9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0.zip cpython-9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0.tar.gz cpython-9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0.tar.bz2 |
fix #4862 in _pyio: reset the decoder on seek(0)
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 58f33a2..1c7d1f1 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -1706,6 +1706,8 @@ class TextIOWrapperTest(unittest.TestCase): f.write(data) f.seek(0) self.assertEquals(f.read(), data * 2) + f.seek(0) + self.assertEquals(f.read(), data * 2) self.assertEquals(buf.getvalue(), (data * 2).encode(encoding)) def test_read_one_by_one(self): |