commit | 9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Mar 05 00:42:09 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Mar 05 00:42:09 2009 +0000 |
tree | a399a6f732273464722a00629b70ad5794d8ebb8 | |
parent | 03cfa7365d7fc7c1020aab3845e49356f961f767 [diff] [blame] |
fix #4862 in _pyio: reset the decoder on seek(0)
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 @@ 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):