diff options
author | Guido van Rossum <guido@python.org> | 2000-10-12 16:46:28 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-12 16:46:28 +0000 |
commit | b8ebf55ac272b901bae102a4974f0cfb09d7f6e8 (patch) | |
tree | 5e483212794d6ed67086cfe37cc9ac9e1befc112 /Lib/test/test_StringIO.py | |
parent | 92356dd00101527d194d5566c9b10295adbf1323 (diff) | |
download | cpython-b8ebf55ac272b901bae102a4974f0cfb09d7f6e8.tar.gz |
Added a test for the StringIO write() error I just fixed.
Diffstat (limited to 'Lib/test/test_StringIO.py')
-rw-r--r-- | Lib/test/test_StringIO.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index b1fca84e70..ea237cd138 100644 --- a/Lib/test/test_StringIO.py +++ b/Lib/test/test_StringIO.py @@ -8,6 +8,13 @@ def do_test(module): 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() |