[issue14026] test_cmd_line_script should include more sys.argv checks
Jason Yeo
report at bugs.python.org
Sat Feb 18 17:05:37 CET 2012
Jason Yeo <jasonyeo88 at gmail.com> added the comment:
>Just define a list of example args as a module global, append them to
>the run_args in _check_script, and check them against sys.argv[1:] with
>assertEqual() in the test script.
Okay I have done that but the assertion passes in all the tests except in test_issue8202 and test_issue8202_dash_m_file_ignored. It seems that the script didn't receive any arguments from the cmd line from the way it is executed in these functions.
I have attached a patch to let you see what I am doing. Let me know if I am wrong. Thanks.
----------
Added file: http://bugs.python.org/file24556/14026patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14026>
_______________________________________
More information about the Python-bugs-list
mailing list