Show More
@@ -24,6 +24,7 import time | |||||
24 | # Our own packages |
|
24 | # Our own packages | |
25 | import IPython.utils.io |
|
25 | import IPython.utils.io | |
26 |
|
26 | |||
|
27 | from IPython.testing import decorators as testdec | |||
27 | from IPython.utils.pickleshare import PickleShareDB |
|
28 | from IPython.utils.pickleshare import PickleShareDB | |
28 | from IPython.utils.io import ask_yes_no |
|
29 | from IPython.utils.io import ask_yes_no | |
29 | from IPython.utils.warn import warn |
|
30 | from IPython.utils.warn import warn | |
@@ -305,6 +306,7 class HistorySaveThread(threading.Thread): | |||||
305 | self.exit_now.set() |
|
306 | self.exit_now.set() | |
306 | self.join() |
|
307 | self.join() | |
307 |
|
308 | |||
|
309 | @testdec.skip_doctest | |||
308 | def magic_history(self, parameter_s = ''): |
|
310 | def magic_history(self, parameter_s = ''): | |
309 | """Print input history (_i<n> variables), with most recent last. |
|
311 | """Print input history (_i<n> variables), with most recent last. | |
310 |
|
312 |
@@ -575,6 +575,7 Currently the magic system has the following functions:\n""" | |||||
575 | self.shell._inspect('pinfo', parameter_s, detail_level=1, |
|
575 | self.shell._inspect('pinfo', parameter_s, detail_level=1, | |
576 | namespaces=namespaces) |
|
576 | namespaces=namespaces) | |
577 |
|
577 | |||
|
578 | @testdec.skip_doctest | |||
578 | def magic_pdef(self, parameter_s='', namespaces=None): |
|
579 | def magic_pdef(self, parameter_s='', namespaces=None): | |
579 | """Print the definition header for any callable object. |
|
580 | """Print the definition header for any callable object. | |
580 |
|
581 | |||
@@ -2618,7 +2619,8 Defaulting color scheme to 'NoColor'""" | |||||
2618 | db['syscmdlist'] = syscmdlist |
|
2619 | db['syscmdlist'] = syscmdlist | |
2619 | finally: |
|
2620 | finally: | |
2620 | os.chdir(savedir) |
|
2621 | os.chdir(savedir) | |
2621 |
|
|
2622 | ||
|
2623 | @testdec.skip_doctest | |||
2622 | def magic_pwd(self, parameter_s = ''): |
|
2624 | def magic_pwd(self, parameter_s = ''): | |
2623 | """Return the current working directory path. |
|
2625 | """Return the current working directory path. | |
2624 |
|
2626 | |||
@@ -2630,7 +2632,8 Defaulting color scheme to 'NoColor'""" | |||||
2630 | Out[9]: '/home/tsuser/sprint/ipython' |
|
2632 | Out[9]: '/home/tsuser/sprint/ipython' | |
2631 | """ |
|
2633 | """ | |
2632 | return os.getcwd() |
|
2634 | return os.getcwd() | |
2633 |
|
2635 | |||
|
2636 | @testdec.skip_doctest | |||
2634 | def magic_cd(self, parameter_s=''): |
|
2637 | def magic_cd(self, parameter_s=''): | |
2635 | """Change the current working directory. |
|
2638 | """Change the current working directory. | |
2636 |
|
2639 |
General Comments 0
You need to be logged in to leave comments.
Login now