Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5006a56 commit ffef244Copy full SHA for ffef244
1 file changed
Lib/test/script_helper.py
@@ -92,8 +92,8 @@ def spawn_python(*args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kw):
92
# - http://reinout.vanrees.org/weblog/2009/08/14/readline-invisible-character-hack.html
93
# - http://stackoverflow.com/questions/15760712/python-readline-module-prints-escape-character-during-import
94
# - http://lists.gnu.org/archive/html/bug-readline/2007-08/msg00004.html
95
- env = kw.setdefault('env', {})
96
- env.setdefault('TERM', 'vt100')
+ env = kw.setdefault('env', dict(os.environ))
+ env['TERM'] = 'vt100'
97
return subprocess.Popen(cmd_line, stdin=subprocess.PIPE,
98
stdout=stdout, stderr=stderr,
99
**kw)
0 commit comments