From cafd495dfed238afdf684ec1cede705bd93bfb5b Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 9 Feb 2001 23:44:22 +0000 Subject: In O_writelines: Replace use of string.joinfields with "".join. --- Lib/test/test_StringIO.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_StringIO.py') diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index ea237cd138a..8d3c85142aa 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) -- cgit v1.2.3