Commit 1d03a4b0 authored by Stefan Behnel's avatar Stefan Behnel

Py2.3 test fixes

parent c3897fcc
...@@ -47,34 +47,21 @@ EXAMPLE: ...@@ -47,34 +47,21 @@ EXAMPLE:
>>> b = a.insertion_point() >>> b = a.insertion_point()
>>> a.write('third\n') >>> a.write('third\n')
>>> b.write('second\n') >>> b.write('second\n')
>>> print a.getvalue() >>> a.getvalue().split()
first ['first', 'second', 'third']
second
third
<BLANKLINE>
>>> c = b.insertion_point() >>> c = b.insertion_point()
>>> d = c.insertion_point() >>> d = c.insertion_point()
>>> d.write('alpha\n') >>> d.write('alpha\n')
>>> b.write('gamma\n') >>> b.write('gamma\n')
>>> c.write('beta\n') >>> c.write('beta\n')
>>> print b.getvalue() >>> b.getvalue().split()
second ['second', 'alpha', 'beta', 'gamma']
alpha
beta
gamma
<BLANKLINE>
>>> out = StringIO() >>> out = StringIO()
>>> a.copyto(out) >>> a.copyto(out)
>>> print out.getvalue() >>> out.getvalue().split()
first ['first', 'second', 'alpha', 'beta', 'gamma', 'third']
second
alpha
beta
gamma
third
<BLANKLINE>
""" """
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment