MCPcopy Create free account
hub / github.com/ipython/ipython / doctest_run_option_parser

Function doctest_run_option_parser

IPython/core/tests/test_run.py:97–109  ·  view source on GitHub ↗

r"""Test option parser in %run. In [1]: %run print_argv.py [] In [2]: %run print_argv.py print*.py ['print_argv.py'] In [3]: %run -G print_argv.py print*.py ['print*.py']

()

Source from the content-addressed store, hash-verified

95
96
97def doctest_run_option_parser():
98 r"""Test option parser in %run.
99
100 In [1]: %run print_argv.py
101 []
102
103 In [2]: %run print_argv.py print*.py
104 ['print_argv.py']
105
106 In [3]: %run -G print_argv.py print*.py
107 ['print*.py']
108
109 """
110
111
112@dec.skip_win32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected