##// END OF EJS Templates
Fix doctest_run_option_parser for Windows...
Takafumi Arakaki -
Show More
@@ -96,13 +96,42 b' def doctest_run_option_parser():'
96 In [2]: %run print_argv.py print*.py
96 In [2]: %run print_argv.py print*.py
97 ['print_argv.py']
97 ['print_argv.py']
98
98
99 In [3]: %run print_argv.py print\\*.py
99 In [3]: %run -G print_argv.py print*.py
100 ['print*.py']
100 ['print*.py']
101
101
102 In [4]: %run print_argv.py 'print*.py'
102 """
103
104
105 @dec.skip_win32
106 def doctest_run_option_parser_for_posix():
107 r"""Test option parser in %run (Linux/OSX specific).
108
109 You need double quote to escape glob in POSIX systems:
110
111 In [1]: %run print_argv.py print\\*.py
112 ['print*.py']
113
114 You can't use quote to escape glob in POSIX systems:
115
116 In [2]: %run print_argv.py 'print*.py'
103 ['print_argv.py']
117 ['print_argv.py']
104
118
105 In [5]: %run -G print_argv.py print*.py
119 """
120
121
122 @dec.skip_linux
123 @dec.skip_osx
124 def doctest_run_option_parser_for_windows():
125 r"""Test option parser in %run (Windows specific).
126
127 In Windows, you can't escape ``*` `by backslash:
128
129 In [1]: %run print_argv.py print\\*.py
130 ['print\\*.py']
131
132 You can use quote to escape glob:
133
134 In [2]: %run print_argv.py 'print*.py'
106 ['print*.py']
135 ['print*.py']
107
136
108 """
137 """
General Comments 0
You need to be logged in to leave comments. Login now