[docs] Documentation of unittest -p usage wrong on windows. (issue 22812)
zachary.ware at gmail.com
zachary.ware at gmail.com
Tue Apr 14 16:20:49 CEST 2015
http://bugs.python.org/review/22812/diff/14527/Lib/unittest/main.py
File Lib/unittest/main.py (right):
http://bugs.python.org/review/22812/diff/14527/Lib/unittest/main.py#newcode231
Lib/unittest/main.py:231: QUOTE_CHARS = '\'"'
I don't think we should worry about ". To get " into an argument on
Windows you need to either put in a lot of effort to make sense of the
quoting rules, or make a mistake in trying to make sense of the quoting
rules. In the first case, the user *really* wants " in their argument,
in the second case it's not our place to clean it up.
Here's an example:
C:\>python -c "import sys;print(sys.argv)" test "test2" "test 3" 'test
4' 'test5' """test 6" ""test 7 "test""8"
['-c', 'test', 'test2', 'test 3', "'test", "4'", "'test5'", '"test 6',
'test', '7', 'test"8']
http://bugs.python.org/review/22812/
More information about the docs
mailing list