Work around bug for Python 3.3

This commit is contained in:
Brad Warren 2017-11-29 09:02:49 -08:00
parent 467d474957
commit d5fab935bd

View file

@ -16,6 +16,10 @@ for requirement in "$@" ; do
pkg=$(echo $requirement | cut -f1 -d\[) # remove any extras such as [dev]
if [ $pkg = "." ]; then
pkg="certbot"
else
# Work around a bug in pytest/importlib for the deprecated Python 3.3.
# See https://travis-ci.org/certbot/certbot/jobs/308774157#L1333.
pkg=$(echo "$pkg" | tr - _)
fi
pytest --numprocesses auto --quiet --pyargs $pkg
done