From 5e2bd17d1834cc510a1e7bc1ba4bf7d1b914a27e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 5 Sep 2018 11:11:42 -0300 Subject: [PATCH] White list external "env" used by Travis for coverage --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index 69397665f..e16de404f 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,7 @@ envlist = docs [testenv] +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --lsof -ra {posargs:testing} passenv = USER USERNAME @@ -56,6 +57,7 @@ deps = nose hypothesis>=3.56 {env:_PYTEST_TOX_EXTRA_DEP:} +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n8 -ra {posargs:testing} @@ -69,6 +71,7 @@ platform = linux|darwin deps = pexpect {env:_PYTEST_TOX_EXTRA_DEP:} +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra test_pdb.py test_terminal.py test_unittest.py @@ -89,6 +92,7 @@ changedir=testing setenv = {[testenv]setenv} PYTHONDONTWRITEBYTECODE=1 +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n3 -ra {posargs:.} @@ -96,6 +100,7 @@ commands = deps = twisted {env:_PYTEST_TOX_EXTRA_DEP:} +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra {posargs:testing/test_unittest.py} @@ -107,6 +112,7 @@ commands = {[testenv:py27-trial]commands} deps = numpy {env:_PYTEST_TOX_EXTRA_DEP:} +whitelist_externals = env commands= {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra {posargs:testing/python/approx.py} @@ -144,6 +150,7 @@ skipsdist = True deps = PyYAML {env:_PYTEST_TOX_EXTRA_DEP:} +whitelist_externals = env commands = {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra doc/en {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest