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