Fix tox for running py3.6

Fix unit tests to run with py3.6.

Change-Id: I96d8e28fe22d5344576caf49f6f7631b96e87b0f
Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
Chuck Short 2018-08-31 08:47:43 -04:00
parent 8f8293611d
commit db2e094dcf

View File

@ -10,11 +10,8 @@ setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./refstack_client/tests/unit
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
git+https://git.openstack.org/openstack/python-tempestconf@master#egg=python_tempestconf
commands =
bash -c "if [ -d ./.tox/py27 ]; then \
pip install -q -U -e 'git+https://git.openstack.org/openstack/python-tempestconf@master#egg=python_tempestconf' ;\
elif [ -d ./.tox/py35 ]; then \
pip3 install -q -U -e 'git+https://git.openstack.org/openstack/python-tempestconf@master#egg=python_tempestconf' ; fi "
stestr run {posargs}
whitelist_externals =