Show More
@@ -407,14 +407,14 b' class TestShellGlob(unittest.TestCase):' | |||||
407 |
|
407 | |||
408 |
|
408 | |||
409 | @pytest.mark.parametrize( |
|
409 | @pytest.mark.parametrize( | |
410 |
|
|
410 | "globstr, unescaped_globstr", | |
411 | [ |
|
411 | [ | |
412 | (r"\*\[\!\]\?", "*[!]?"), |
|
412 | (r"\*\[\!\]\?", "*[!]?"), | |
413 | (r"\\*", r"\*"), |
|
413 | (r"\\*", r"\*"), | |
414 | (r"\\\*", r"\*"), |
|
414 | (r"\\\*", r"\*"), | |
415 | (r"\\a", r"\a"), |
|
415 | (r"\\a", r"\a"), | |
416 | (r"\a", r"\a") |
|
416 | (r"\a", r"\a"), | |
417 | ] |
|
417 | ], | |
418 | ) |
|
418 | ) | |
419 | def test_unescape_glob(globstr, unescaped_globstr): |
|
419 | def test_unescape_glob(globstr, unescaped_globstr): | |
420 | assert path.unescape_glob(globstr) == unescaped_globstr |
|
420 | assert path.unescape_glob(globstr) == unescaped_globstr |
@@ -58,17 +58,17 b' def test_find_cmd_fail():' | |||||
58 |
|
58 | |||
59 | @dec.skip_win32 |
|
59 | @dec.skip_win32 | |
60 | @pytest.mark.parametrize( |
|
60 | @pytest.mark.parametrize( | |
61 |
|
|
61 | "argstr, argv", | |
62 | [ |
|
62 | [ | |
63 |
( |
|
63 | ("hi", ["hi"]), | |
64 |
(u |
|
64 | (u"hi", [u"hi"]), | |
65 |
( |
|
65 | ("hello there", ["hello", "there"]), | |
66 | # \u01ce == \N{LATIN SMALL LETTER A WITH CARON} |
|
66 | # \u01ce == \N{LATIN SMALL LETTER A WITH CARON} | |
67 | # Do not use \N because the tests crash with syntax error in |
|
67 | # Do not use \N because the tests crash with syntax error in | |
68 | # some cases, for example windows python2.6. |
|
68 | # some cases, for example windows python2.6. | |
69 |
(u |
|
69 | (u"h\u01cello", [u"h\u01cello"]), | |
70 |
('something "with quotes"', [ |
|
70 | ('something "with quotes"', ["something", '"with quotes"']), | |
71 | ] |
|
71 | ], | |
72 | ) |
|
72 | ) | |
73 | def test_arg_split(argstr, argv): |
|
73 | def test_arg_split(argstr, argv): | |
74 | """Ensure that argument lines are correctly split like in a shell.""" |
|
74 | """Ensure that argument lines are correctly split like in a shell.""" | |
@@ -77,14 +77,14 b' def test_arg_split(argstr, argv):' | |||||
77 |
|
77 | |||
78 | @dec.skip_if_not_win32 |
|
78 | @dec.skip_if_not_win32 | |
79 | @pytest.mark.parametrize( |
|
79 | @pytest.mark.parametrize( | |
80 |
|
|
80 | "argstr,argv", | |
81 | [ |
|
81 | [ | |
82 |
( |
|
82 | ("hi", ["hi"]), | |
83 |
(u |
|
83 | (u"hi", [u"hi"]), | |
84 |
( |
|
84 | ("hello there", ["hello", "there"]), | |
85 |
(u |
|
85 | (u"h\u01cello", [u"h\u01cello"]), | |
86 |
('something "with quotes"', [ |
|
86 | ('something "with quotes"', ["something", "with quotes"]), | |
87 | ] |
|
87 | ], | |
88 | ) |
|
88 | ) | |
89 | def test_arg_split_win32(argstr, argv): |
|
89 | def test_arg_split_win32(argstr, argv): | |
90 | """Ensure that argument lines are correctly split like in a shell.""" |
|
90 | """Ensure that argument lines are correctly split like in a shell.""" |
General Comments 0
You need to be logged in to leave comments.
Login now