summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_StringIO.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-09 23:44:22 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-09 23:44:22 (GMT)
commitcafd495dfed238afdf684ec1cede705bd93bfb5b (patch)
tree6ed921517d19e5dbca8bac1642521086aaf285b4 /Lib/test/test_StringIO.py
parent6f8ee59653261731d73f0e16bd3f667db57133bd (diff)
downloadcpython-cafd495dfed238afdf684ec1cede705bd93bfb5b.zip
cpython-cafd495dfed238afdf684ec1cede705bd93bfb5b.tar.gz
cpython-cafd495dfed238afdf684ec1cede705bd93bfb5b.tar.bz2
In O_writelines: Replace use of string.joinfields with "".join.
Diffstat (limited to 'Lib/test/test_StringIO.py')
-rw-r--r--Lib/test/test_StringIO.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py
index ea237cd..8d3c851 100644
--- a/Lib/test/test_StringIO.py
+++ b/Lib/test/test_StringIO.py
@@ -14,6 +14,13 @@ def do_test(module):
f.write('!')
print `f.getvalue()`
f.close()
+
+ f = module.StringIO()
+ f.writelines(["a", "b", "c"])
+ f.seek(0)
+ print `f.getvalue()`
+ f.close()
+
f = module.StringIO()
f.write(s)
f.seek(10)
@@ -31,7 +38,6 @@ def do_test(module):
else:
print "Failed to catch ValueError writing to closed StringIO."
-# Don't bother testing cStringIO without
import StringIO, cStringIO
do_test(StringIO)
do_test(cStringIO)