From 2d473591583c0bf2252490f10427b493f8086a15 2013-10-29 16:15:57 From: Thomas Kluyver Date: 2013-10-29 16:15:57 Subject: [PATCH] Fix some doctests for Python 2 --- diff --git a/IPython/testing/plugin/dtexample.py b/IPython/testing/plugin/dtexample.py index 304de65..5e02629 100644 --- a/IPython/testing/plugin/dtexample.py +++ b/IPython/testing/plugin/dtexample.py @@ -3,7 +3,7 @@ This file just contains doctests both using plain python and IPython prompts. All tests should be loaded by nose. """ -from IPython.utils.py3compat import doctest_refactor_print +from __future__ import print_function def pyfunc(): """Some pure python tests... @@ -24,7 +24,6 @@ def pyfunc(): """ return 'pyfunc' -@doctest_refactor_print def ipfunc(): """Some ipython tests... @@ -128,7 +127,6 @@ def random_all(): """ pass -@doctest_refactor_print def iprand(): """Some ipython tests with random output. @@ -143,7 +141,6 @@ def iprand(): """ return 'iprand' -@doctest_refactor_print def iprand_all(): """Some ipython tests with fully random output. diff --git a/IPython/testing/plugin/simple.py b/IPython/testing/plugin/simple.py index 3861977..a7d33d9 100644 --- a/IPython/testing/plugin/simple.py +++ b/IPython/testing/plugin/simple.py @@ -3,6 +3,7 @@ This file just contains doctests both using plain python and IPython prompts. All tests should be loaded by nose. """ +from __future__ import print_function def pyfunc(): """Some pure python tests...