tst_tools_utils_doctest.txt
42 lines
| 953 B
| text/plain
|
TextLexer
Brian E Granger
|
r1234 | |||
========================= | ||||
Auto-generated doctests | ||||
========================= | ||||
This file was auto-generated by IPython in its entirety. If you need finer | ||||
control over the contents, simply make a manual template. See the | ||||
mkdoctests.py script for details. | ||||
---------------------------------------------------------------------------- | ||||
Begin included file tst_tools_utils_doctest.py:: | ||||
# Setup - all imports are done in tcommon | ||||
Brian E Granger
|
r1237 | >>> from IPython.testing import tcommon | ||
>>> from IPython.testing.tcommon import * | ||||
Brian E Granger
|
r1234 | |||
# Doctest code begins here | ||||
>>> from IPython.tools import utils | ||||
>>> for i in range(10): | ||||
... print i, | ||||
... print i+1 | ||||
... | ||||
0 1 | ||||
1 2 | ||||
2 3 | ||||
3 4 | ||||
4 5 | ||||
5 6 | ||||
6 7 | ||||
7 8 | ||||
8 9 | ||||
9 10 | ||||
>>> print 'simple loop is over' | ||||
simple loop is over | ||||
End included file tst_tools_utils_doctest.py | ||||
---------------------------------------------------------------------------- | ||||