From 61a8559ea1a79dd69b8771114809ece3d1295a4f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 14 May 2020 15:27:43 -0600 Subject: [PATCH] tox: Avoid system site-packages Signed-off-by: Zack Cerza --- tox.ini | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index 6fbb040b9f..e4c7c14133 100644 --- a/tox.ini +++ b/tox.ini @@ -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] -- 2.39.5