Py2.3 test fixes
authorStefan Behnel <scoder@users.berlios.de>
Sun, 10 Aug 2008 20:10:33 +0000 (22:10 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 10 Aug 2008 20:10:33 +0000 (22:10 +0200)
Cython/StringIOTree.py

index 5f4fb8794e176f69cf83855265b2a4e876b935b4..9e9b31b228aaf79a22b9658fb6ffcce1d15a725a 100644 (file)
@@ -47,34 +47,21 @@ EXAMPLE:
 >>> b = a.insertion_point()
 >>> a.write('third\n')
 >>> b.write('second\n')
->>> print a.getvalue()
-first
-second
-third
-<BLANKLINE>
+>>> 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
-<BLANKLINE>
+>>> b.getvalue().split()
+['second', 'alpha', 'beta', 'gamma']
 
 >>> out = StringIO()
 >>> a.copyto(out)
->>> print out.getvalue()
-first
-second
-alpha
-beta
-gamma
-third
-<BLANKLINE>
+>>> out.getvalue().split()
+['first', 'second', 'alpha', 'beta', 'gamma', 'third']
 """
             
 if __name__ == "__main__":