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)
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)
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')