aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/environment.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-29 22:14:39 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-29 22:14:39 -0400
commit1166cd39f2be99bd0aeace80642a80ccde244989 (patch)
treed7b3c2553fc76c3fbbc7ec31b9bc1c3d76f127f5 /setuptools/tests/environment.py
parent2ec13d5d118c249bfdb8b40a56c03c59e5c2e94d (diff)
downloadexternal_python_setuptools-1166cd39f2be99bd0aeace80642a80ccde244989.tar.gz
external_python_setuptools-1166cd39f2be99bd0aeace80642a80ccde244989.tar.bz2
external_python_setuptools-1166cd39f2be99bd0aeace80642a80ccde244989.zip
Extract variable to be in proximity of its comment
Diffstat (limited to 'setuptools/tests/environment.py')
-rw-r--r--setuptools/tests/environment.py6
1 files changed, 4 insertions, 2 deletions
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: