Skip to content

Commit

Permalink
Skip doctests where necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Feb 15, 2011
1 parent a2d9aa2 commit bd63ffa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions IPython/core/history.py
Expand Up @@ -24,6 +24,7 @@
# Our own packages # Our own packages
import IPython.utils.io import IPython.utils.io


from IPython.testing import decorators as testdec
from IPython.utils.pickleshare import PickleShareDB from IPython.utils.pickleshare import PickleShareDB
from IPython.utils.io import ask_yes_no from IPython.utils.io import ask_yes_no
from IPython.utils.warn import warn from IPython.utils.warn import warn
Expand Down Expand Up @@ -305,6 +306,7 @@ def stop(self):
self.exit_now.set() self.exit_now.set()
self.join() self.join()


@testdec.skip_doctest
def magic_history(self, parameter_s = ''): def magic_history(self, parameter_s = ''):
"""Print input history (_i<n> variables), with most recent last. """Print input history (_i<n> variables), with most recent last.
Expand Down
7 changes: 5 additions & 2 deletions IPython/core/magic.py
Expand Up @@ -575,6 +575,7 @@ def magic_pinfo2(self, parameter_s='', namespaces=None):
self.shell._inspect('pinfo', parameter_s, detail_level=1, self.shell._inspect('pinfo', parameter_s, detail_level=1,
namespaces=namespaces) namespaces=namespaces)


@testdec.skip_doctest
def magic_pdef(self, parameter_s='', namespaces=None): def magic_pdef(self, parameter_s='', namespaces=None):
"""Print the definition header for any callable object. """Print the definition header for any callable object.
Expand Down Expand Up @@ -2618,7 +2619,8 @@ def magic_rehashx(self, parameter_s = ''):
db['syscmdlist'] = syscmdlist db['syscmdlist'] = syscmdlist
finally: finally:
os.chdir(savedir) os.chdir(savedir)


@testdec.skip_doctest
def magic_pwd(self, parameter_s = ''): def magic_pwd(self, parameter_s = ''):
"""Return the current working directory path. """Return the current working directory path.
Expand All @@ -2630,7 +2632,8 @@ def magic_pwd(self, parameter_s = ''):
Out[9]: '/home/tsuser/sprint/ipython' Out[9]: '/home/tsuser/sprint/ipython'
""" """
return os.getcwd() return os.getcwd()


@testdec.skip_doctest
def magic_cd(self, parameter_s=''): def magic_cd(self, parameter_s=''):
"""Change the current working directory. """Change the current working directory.
Expand Down

0 comments on commit bd63ffa

Please sign in to comment.