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