diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2017-07-14 08:58:14 +0200 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2017-07-15 06:36:32 +0200 |
commit | 95386da92ec1725a09c5cd8e457be5ff3dc15a3e (patch) | |
tree | be7b47bba743e03b42603ba6a98ea889a5985063 /tests | |
parent | bf20d881df662da30d94687efb2ff3d3ba32f55a (diff) | |
download | python-setuptools-git-95386da92ec1725a09c5cd8e457be5ff3dc15a3e.tar.gz |
tests: rework clean install test
Use pytest-virtualenv so the test can be run no Windows too.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/clean_install.sh | 27 | ||||
-rw-r--r-- | tests/requirements.txt | 3 |
2 files changed, 3 insertions, 27 deletions
diff --git a/tests/clean_install.sh b/tests/clean_install.sh deleted file mode 100755 index f8f80dc7..00000000 --- a/tests/clean_install.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# This test was created in -# https://github.com/pypa/setuptools/pull/1050 -# but it really should be incorporated into the test suite -# such that it runs on Windows and doesn't depend on -# virtualenv. Moving to test_integration will likely address -# those concerns. - -set -o errexit -set -o xtrace - -# Create a temporary directory to install the virtualenv in -VENV_DIR="$(mktemp -d)" -function cleanup() { - rm -rf "$VENV_DIR" -} -trap cleanup EXIT - -# Create a virtualenv that doesn't have pip or setuptools installed -wget https://raw.githubusercontent.com/pypa/virtualenv/master/virtualenv.py -python virtualenv.py --no-wheel --no-pip --no-setuptools "$VENV_DIR" -source "$VENV_DIR/bin/activate" - -# Now try to install setuptools -python bootstrap.py -python setup.py install diff --git a/tests/requirements.txt b/tests/requirements.txt index ddba6cc8..0c4df8ef 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,3 +1,6 @@ +importlib; python_version<"2.7" mock pytest-flake8 +pytest-virtualenv>=1.2.7 pytest>=3.0.2 +virtualenv |