##// END OF EJS Templates
fix test
Matthias Bussonnier -
Show More
@@ -57,7 +57,7 b' from IPython.core.prefilter import PrefilterManager'
57 57 from IPython.core.profiledir import ProfileDir
58 58 from IPython.core.prompts import PromptManager
59 59 from IPython.core.usage import default_banner
60 from IPython.testing.skipdoctest import skip_doctest
60 from IPython.testing.skipdoctest import skip_doctest_py2, skip_doctest
61 61 from IPython.utils import PyColorize
62 62 from IPython.utils import io
63 63 from IPython.utils import py3compat
@@ -1939,6 +1939,7 b' class InteractiveShell(SingletonConfigurable):'
1939 1939 self.set_hook('complete_command', reset_completer, str_key = '%reset')
1940 1940
1941 1941
1942 @skip_doctest_py2
1942 1943 def complete(self, text, line=None, cursor_pos=None):
1943 1944 """Return the completed text and a list of completions.
1944 1945
@@ -36,3 +36,8 b' def skip_doctest_py3(f):'
36 36 """Decorator - skip the doctest under Python 3."""
37 37 f.skip_doctest = (sys.version_info[0] >= 3)
38 38 return f
39
40 def skip_doctest_py2(f):
41 """Decorator - skip the doctest under Python 3."""
42 f.skip_doctest = (sys.version_info[0] < 3)
43 return f
General Comments 0
You need to be logged in to leave comments. Login now