Bug 1628838 - Fix mach python on Windows by unsetting PYTHONUNBUFFERED. r=glandium

The existence of this environment variable breaks the Python shell on Windows, so make sure it's unset (but only in this case to avoid regressing bug 1627873).

Differential Revision: https://phabricator.services.mozilla.com/D70542
This commit is contained in:
Ricky Stewart
2020-04-21 14:07:19 +00:00
parent 4ee51e410f
commit e14ffc4ecc
2 changed files with 15 additions and 5 deletions

View File

@@ -87,6 +87,7 @@ class MachCommands(MachCommandBase):
return self.run_process([python_path] + args,
pass_thru=True, # Allow user to run Python interactively.
ensure_exit_code=False, # Don't throw on non-zero exit code.
python_unbuffered=False, # Leave input buffered.
append_env=append_env)
@Command('python-test', category='testing',