mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #8202: Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
This commit is contained in:
parent
46e6380563
commit
d26c18adcc
8 changed files with 130 additions and 53 deletions
|
@ -1,5 +1,5 @@
|
|||
# Tests invocation of the interpreter with various command line arguments
|
||||
# All tests are executed with environment variables ignored
|
||||
# Most tests are executed with environment variables ignored
|
||||
# See test_cmd_line_script.py for testing of script execution
|
||||
|
||||
import test.support, unittest
|
||||
|
@ -7,10 +7,6 @@ import os
|
|||
import sys
|
||||
from test.script_helper import spawn_python, kill_python, python_exit_code
|
||||
|
||||
# XXX (ncoghlan): there are assorted gratuitous inconsistencies between the
|
||||
# support code in the Py3k version and the 2.x version that unnecessarily
|
||||
# complicate test suite merges. See issue 7331
|
||||
|
||||
# spawn_python normally enforces use of -E to avoid environmental effects
|
||||
# but one test checks PYTHONPATH behaviour explicitly
|
||||
# XXX (ncoghlan): Give script_helper.spawn_python an option to switch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue