Also test plain ensurepip in smoke tests

This commit is contained in:
Miro Hrončok 2020-04-29 01:17:58 +02:00
commit 450364614f

View file

@ -10,7 +10,7 @@ METHOD=${METHOD:-venv}
TOX=${TOX:-true}
# clean from possible older runs
rm -rf venv .tox __pycache__ .pytest* test_*.py *.pyx *.c *.so || :
rm -rf venv .tox __pycache__ .pytest* test_*.py *.pyx *.c *.so ensurepiptestroot || :
# check the we can create the venv
if [ "$METHOD" == "venv" ]; then
@ -87,6 +87,10 @@ set +u
deactivate
set -u
# ensurepip test (when testing virtualenv, this was not covered)
# with the main Python, this will say "Requirement already satisfied", but that's OK
$PYTHON -m ensurepip --root ensurepiptestroot
# use it with tox
[[ "$TOX" != "true" ]] && exit 0
if [[ $PYTHON == python* ]]; then