From 1d03a4b0a413484684ec077fcc5836e88ef4f7a0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 10 Aug 2008 22:10:33 +0200 Subject: [PATCH] Py2.3 test fixes --- Cython/StringIOTree.py | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/Cython/StringIOTree.py b/Cython/StringIOTree.py index 5f4fb879..9e9b31b2 100644 --- a/Cython/StringIOTree.py +++ b/Cython/StringIOTree.py @@ -47,34 +47,21 @@ EXAMPLE: >>> b = a.insertion_point() >>> a.write('third\n') >>> b.write('second\n') ->>> print a.getvalue() -first -second -third - +>>> a.getvalue().split() +['first', 'second', 'third'] >>> c = b.insertion_point() >>> d = c.insertion_point() >>> d.write('alpha\n') >>> b.write('gamma\n') >>> c.write('beta\n') ->>> print b.getvalue() -second -alpha -beta -gamma - +>>> b.getvalue().split() +['second', 'alpha', 'beta', 'gamma'] >>> out = StringIO() >>> a.copyto(out) ->>> print out.getvalue() -first -second -alpha -beta -gamma -third - +>>> out.getvalue().split() +['first', 'second', 'alpha', 'beta', 'gamma', 'third'] """ if __name__ == "__main__": -- 2.26.2