tox: Avoid system site-packages
@@ -4,7 +4,6 @@ envlist = docs, py3, py27, py27-integration, flake8, flake8-py3, openstack
[testenv:py27]
install_command = pip install --upgrade {opts} {packages}
passenv = HOME
-sitepackages=True
deps=
-r{toxinidir}/requirements2.txt
mock==2.0.0
@@ -13,14 +12,13 @@ deps=
coverage==4.5.4
commands=
- py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
+ python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
[testenv:py3]
basepython=python3
install_command = pip install --upgrade {opts} {packages}
passenv = HOME
-sitepackages=True
deps=
-r{toxinidir}/requirements3.txt
mock==2.0.0
@@ -29,7 +27,7 @@ deps=
coverage==4.5.4
commands=
- py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
+ python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
[testenv:py27-integration]
