Skip to content

Commit c7e66d6

Browse files
nicoddemusblueyed
authored andcommitted
White list external "env" used by Travis for coverage
1 parent f570a19 commit c7e66d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ envlist =
1717
docs
1818

1919
[testenv]
20+
whitelist_externals = env
2021
commands =
2122
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --lsof -ra {posargs:testing}
2223
passenv = USER USERNAME
@@ -56,6 +57,7 @@ deps =
5657
nose
5758
hypothesis>=3.56
5859
{env:_PYTEST_TOX_EXTRA_DEP:}
60+
whitelist_externals = env
5961
commands =
6062
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n8 -ra {posargs:testing}
6163

@@ -69,6 +71,7 @@ platform = linux|darwin
6971
deps =
7072
pexpect
7173
{env:_PYTEST_TOX_EXTRA_DEP:}
74+
whitelist_externals = env
7275
commands =
7376
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra test_pdb.py test_terminal.py test_unittest.py
7477

@@ -89,13 +92,15 @@ changedir=testing
8992
setenv =
9093
{[testenv]setenv}
9194
PYTHONDONTWRITEBYTECODE=1
95+
whitelist_externals = env
9296
commands =
9397
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n3 -ra {posargs:.}
9498

9599
[testenv:py27-trial]
96100
deps =
97101
twisted
98102
{env:_PYTEST_TOX_EXTRA_DEP:}
103+
whitelist_externals = env
99104
commands =
100105
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra {posargs:testing/test_unittest.py}
101106

@@ -107,6 +112,7 @@ commands = {[testenv:py27-trial]commands}
107112
deps =
108113
numpy
109114
{env:_PYTEST_TOX_EXTRA_DEP:}
115+
whitelist_externals = env
110116
commands=
111117
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra {posargs:testing/python/approx.py}
112118

@@ -144,6 +150,7 @@ skipsdist = True
144150
deps =
145151
PyYAML
146152
{env:_PYTEST_TOX_EXTRA_DEP:}
153+
whitelist_externals = env
147154
commands =
148155
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -ra doc/en
149156
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest

0 commit comments

Comments
 (0)