##// END OF EJS Templates
Fix some doctests for Python 2
Thomas Kluyver -
Show More
@@ -3,7 +3,7 b''
3 3 This file just contains doctests both using plain python and IPython prompts.
4 4 All tests should be loaded by nose.
5 5 """
6 from IPython.utils.py3compat import doctest_refactor_print
6 from __future__ import print_function
7 7
8 8 def pyfunc():
9 9 """Some pure python tests...
@@ -24,7 +24,6 b' def pyfunc():'
24 24 """
25 25 return 'pyfunc'
26 26
27 @doctest_refactor_print
28 27 def ipfunc():
29 28 """Some ipython tests...
30 29
@@ -128,7 +127,6 b' def random_all():'
128 127 """
129 128 pass
130 129
131 @doctest_refactor_print
132 130 def iprand():
133 131 """Some ipython tests with random output.
134 132
@@ -143,7 +141,6 b' def iprand():'
143 141 """
144 142 return 'iprand'
145 143
146 @doctest_refactor_print
147 144 def iprand_all():
148 145 """Some ipython tests with fully random output.
149 146
@@ -3,6 +3,7 b''
3 3 This file just contains doctests both using plain python and IPython prompts.
4 4 All tests should be loaded by nose.
5 5 """
6 from __future__ import print_function
6 7
7 8 def pyfunc():
8 9 """Some pure python tests...
General Comments 0
You need to be logged in to leave comments. Login now