aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/environment.py
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2019-01-28 22:57:20 +0100
committerJason R. Coombs <jaraco@jaraco.com>2019-01-28 18:04:29 -0500
commitf7447817b65c12dfe508249cea019c41ce0dc23f (patch)
tree7e3e67621556aeba50c5302928181558b60bb2b8 /setuptools/tests/environment.py
parent78fd73026ad7284819936b651f7cfbe8a1ec98c8 (diff)
downloadexternal_python_setuptools-f7447817b65c12dfe508249cea019c41ce0dc23f.tar.gz
external_python_setuptools-f7447817b65c12dfe508249cea019c41ce0dc23f.tar.bz2
external_python_setuptools-f7447817b65c12dfe508249cea019c41ce0dc23f.zip
test: add a simple regression test for `build_ext`
Diffstat (limited to 'setuptools/tests/environment.py')
-rw-r--r--setuptools/tests/environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/tests/environment.py b/setuptools/tests/environment.py
index c67898ca..bd3119ef 100644
--- a/setuptools/tests/environment.py
+++ b/setuptools/tests/environment.py
@@ -46,6 +46,8 @@ def run_setup_py(cmd, pypath=None, path=None,
cmd, stdout=_PIPE, stderr=_PIPE, shell=shell, env=env,
)
+ if isinstance(data_stream, tuple):
+ data_stream = slice(*data_stream)
data = proc.communicate()[data_stream]
except OSError:
return 1, ''