From 1166cd39f2be99bd0aeace80642a80ccde244989 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 29 Sep 2014 22:14:39 -0400 Subject: Extract variable to be in proximity of its comment --- setuptools/tests/environment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'setuptools/tests') diff --git a/setuptools/tests/environment.py b/setuptools/tests/environment.py index fa26a9ec..5fdbd969 100644 --- a/setuptools/tests/environment.py +++ b/setuptools/tests/environment.py @@ -96,10 +96,12 @@ def run_setup_py(cmd, pypath=None, path=None, cmd = [sys.executable, "setup.py"] + list(cmd) - #regarding the shell argument, see: http://bugs.python.org/issue8557 + # http://bugs.python.org/issue8557 + shell = sys.platform == 'win32' + try: proc = _Popen(cmd, stdout=_PIPE, stderr=_PIPE, - shell=(sys.platform == 'win32'), env=env) + shell=shell, env=env) data = proc.communicate()[data_stream] except OSError: -- cgit v1.2.3