From: Stefan Behnel Date: Sun, 10 Aug 2008 20:10:33 +0000 (+0200) Subject: Py2.3 test fixes X-Git-Tag: 0.9.8.1~68 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1d03a4b0a413484684ec077fcc5836e88ef4f7a0;p=cython.git Py2.3 test fixes --- 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__":