aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2018-11-02 20:38:43 -0400
committerPaul Ganssle <paul@ganssle.io>2018-11-02 20:53:01 -0400
commit7a3e4b4169d5f65714f1302aff6c420237ff9295 (patch)
tree527f4ad4b9ba9eb8b98313aa03025229ce8bd20c /setuptools/tests
parent6ed6fe8def487aa77ee67d5ab3adcb2b66814831 (diff)
downloadexternal_python_setuptools-7a3e4b4169d5f65714f1302aff6c420237ff9295.tar.gz
external_python_setuptools-7a3e4b4169d5f65714f1302aff6c420237ff9295.tar.bz2
external_python_setuptools-7a3e4b4169d5f65714f1302aff6c420237ff9295.zip
Add futures backport to test reqs
`setuptools.tests.test_build_meta` relies on the Python 3 feature `concurrent.futures` to run, and as a result has been silently skipped in Python 2.7. This adds the `futures` backport to the 2.7 test requirements and turns the `pytest.importorskip` invocations in test_build_meta into standard import statements.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_build_meta.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index c5f4dcaa..2dc45bc4 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -11,8 +11,9 @@ from . import py2_only
__metaclass__ = type
-futures = pytest.importorskip('concurrent.futures')
-importlib = pytest.importorskip('importlib')
+# Backports on Python 2.7
+import importlib
+from concurrent import futures
class BuildBackendBase: