Skip to content

Commit 5bd1af9

Browse files
committed
Remove dependency on the "mock" package on Python 3
1 parent 995bd6a commit 5bd1af9

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

tox.ini

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,37 @@ envlist =
44

55
[testenv]
66
deps =
7-
attrs < 21.1.0 # see https://github.com/python-attrs/attrs/pull/608
8-
pytest
7+
attrs < 21.1.0 # see https://github.com/python-attrs/attrs/pull/608
98
pexpect == 4.7.0 # see https://github.com/Supervisor/supervisor/issues/1327
10-
mock >= 0.5.0
9+
pytest
1110
passenv = END_TO_END
1211
commands =
1312
pytest --capture=no {posargs}
1413

15-
[testenv:py27-configparser]
16-
;see https://github.com/Supervisor/supervisor/issues/1230
14+
[testenv:py27]
1715
basepython = python2.7
1816
deps =
1917
{[testenv]deps}
20-
configparser
18+
mock >= 0.5.0
2119
passenv = {[testenv]passenv}
2220
commands = {[testenv]commands}
2321

22+
[testenv:py27-configparser]
23+
;see https://github.com/Supervisor/supervisor/issues/1230
24+
basepython = python2.7
25+
deps =
26+
{[testenv:py27]deps}
27+
configparser
28+
passenv = {[testenv:py27]passenv}
29+
commands = {[testenv:py27]commands}
30+
2431
[testenv:cover]
2532
basepython = python2.7
26-
commands =
27-
pytest --capture=no --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
2833
deps =
29-
{[testenv]deps}
34+
{[testenv:py27]deps}
3035
pytest-cov
36+
commands =
37+
pytest --capture=no --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
3138

3239
[testenv:cover3]
3340
basepython = python3.8

0 commit comments

Comments
 (0)