Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_StringIO.py @ 15175:ab1f90dd502f legacy-trunk
Added a test for the StringIO write() error I just fixed.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 12 Oct 2000 16:46:28 +0000 |
| parents | becd8a121464 |
| children | 60a2e99c863b |
line wrap: on
line diff
--- a/Lib/test/test_StringIO.py Thu Oct 12 16:45:37 2000 +0000 +++ b/Lib/test/test_StringIO.py Thu Oct 12 16:46:28 2000 +0000 @@ -8,6 +8,13 @@ print len(f.readlines(60)) f = module.StringIO() + f.write('abcdef') + f.seek(3) + f.write('uvwxyz') + f.write('!') + print `f.getvalue()` + f.close() + f = module.StringIO() f.write(s) f.seek(10) f.truncate()
