[Python-checkins] r58103 - python/trunk/Lib/test/test_cmd_line.py
nick.coghlan
python-checkins at python.org
Tue Sep 11 16:01:18 CEST 2007
Author: nick.coghlan
Date: Tue Sep 11 16:01:18 2007
New Revision: 58103
Modified:
python/trunk/Lib/test/test_cmd_line.py
Log:
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
Modified: python/trunk/Lib/test/test_cmd_line.py
==============================================================================
--- python/trunk/Lib/test/test_cmd_line.py (original)
+++ python/trunk/Lib/test/test_cmd_line.py Tue Sep 11 16:01:18 2007
@@ -4,7 +4,7 @@
import subprocess
def _spawn_python(*args):
- cmd_line = [sys.executable]
+ cmd_line = [sys.executable, '-E']
cmd_line.extend(args)
return subprocess.Popen(cmd_line, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
@@ -24,7 +24,7 @@
return _kill_python(p)
def exit_code(self, *args):
- cmd_line = [sys.executable]
+ cmd_line = [sys.executable, '-E']
cmd_line.extend(args)
return subprocess.call(cmd_line, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
@@ -38,9 +38,6 @@
self.assertTrue(data == '' or data.endswith('\n'))
self.assertTrue('Traceback' not in data)
- def test_environment(self):
- self.verify_valid_flag('-E')
-
def test_optimize(self):
self.verify_valid_flag('-O')
self.verify_valid_flag('-OO')
More information about the Python-checkins
mailing list