summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2010-08-17 13:06:11 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2010-08-17 13:06:11 (GMT)
commitd26c18adccf02321592cd58a2dadb0ab68af6906 (patch)
tree0429b57ab0d5cc0b36ca68af24f382c888cbcf9c /Lib/test/test_cmd_line.py
parent46e63805638e0fac20aeae837e1f93b4a675446a (diff)
downloadcpython-d26c18adccf02321592cd58a2dadb0ab68af6906.zip
cpython-d26c18adccf02321592cd58a2dadb0ab68af6906.tar.gz
cpython-d26c18adccf02321592cd58a2dadb0ab68af6906.tar.bz2
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
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r--Lib/test/test_cmd_line.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index 6688998..46d2395 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -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