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

Function test_arg_split_win32

IPython/utils/tests/test_process.py:86–95  ·  view source on GitHub ↗

Ensure that argument lines are correctly split like in a shell.

()

Source from the content-addressed store, hash-verified

84
85@dec.skip_if_not_win32
86def test_arg_split_win32():
87 """Ensure that argument lines are correctly split like in a shell."""
88 tests = [['hi', ['hi']],
89 [u'hi', [u'hi']],
90 ['hello there', ['hello', 'there']],
91 [u'h\u01cello', [u'h\u01cello']],
92 ['something "with quotes"', ['something', 'with quotes']],
93 ]
94 for argstr, argv in tests:
95 nt.assert_equal(arg_split(argstr), argv)
96
97
98class SubProcessTestCase(tt.TempFileMixin):

Callers

nothing calls this directly

Calls 1

arg_splitFunction · 0.90

Tested by

no test coverage detected