##// END OF EJS Templates
Add tests for %run option parser
Takafumi Arakaki -
Show More
@@ -0,0 +1,2 b''
1 import sys
2 print sys.argv[1:]
@@ -86,6 +86,28 b' def doctest_run_builtins():'
86 86 ....:
87 87 """
88 88
89
90 def doctest_run_option_parser():
91 r"""Test option parser in %run.
92
93 In [1]: %run print_argv.py
94 []
95
96 In [2]: %run print_argv.py print*.py
97 ['print_argv.py']
98
99 In [3]: %run print_argv.py print\\*.py
100 ['print*.py']
101
102 In [4]: %run print_argv.py 'print*.py'
103 ['print_argv.py']
104
105 In [5]: %run -G print_argv.py print*.py
106 ['print*.py']
107
108 """
109
110
89 111 @py3compat.doctest_refactor_print
90 112 def doctest_reset_del():
91 113 """Test that resetting doesn't cause errors in __del__ methods.
General Comments 0
You need to be logged in to leave comments. Login now