@@ -30,15 +30,15 @@ setenv =
3030deps =
3131 hypothesis>=3.56
3232 nose
33- mock
33+ {py27,pypy}: mock
3434 requests
3535 {env:_PYTEST_TOX_EXTRA_DEP:}
3636
3737[testenv:py27-subprocess]
3838changedir = .
3939deps =
4040 pytest-xdist>=1.13
41- mock
41+ py27: mock
4242 nose
4343passenv = USER USERNAME TRAVIS
4444commands =
@@ -54,7 +54,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
5454[testenv:py27-xdist]
5555deps =
5656 pytest-xdist>=1.13
57- mock
57+ {py27,pypy}: mock
5858 nose
5959 hypothesis>=3.56
6060 {env:_PYTEST_TOX_EXTRA_DEP:}
@@ -64,7 +64,13 @@ commands =
6464 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto -ra {posargs:testing}
6565
6666[testenv:py36-xdist]
67- deps = {[testenv:py27-xdist]deps}
67+ # NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
68+ deps =
69+ pytest-xdist>=1.13
70+ {py27,pypy}: mock
71+ nose
72+ hypothesis>=3.56
73+ {env:_PYTEST_TOX_EXTRA_DEP:}
6874commands = {[testenv:py27-xdist]commands}
6975
7076[testenv:py27-pexpect]
@@ -87,7 +93,7 @@ commands = {[testenv:py27-pexpect]commands}
8793deps =
8894 pytest-xdist>=1.13
8995 hypothesis>=3.56
90- mock
96+ py27: mock
9197 {env:_PYTEST_TOX_EXTRA_DEP:}
9298distribute = true
9399changedir =testing
@@ -127,13 +133,11 @@ commands = {[testenv:py27-numpy]commands}
127133setenv =
128134 {[testenv]setenv}
129135 _PYTEST_SETUP_SKIP_PLUGGY_DEP =1
130- deps =
131- {[testenv]deps}
132- git+https://github.com/pytest-dev/pluggy.git@master
136+ # NOTE: using env instead of "{[testenv]deps}", because of https://github.com/tox-dev/tox/issues/706.
137+ _PYTEST_TOX_EXTRA_DEP =git+https://github.com/pytest-dev/pluggy.git@master
133138
134139[testenv:py36-pluggymaster]
135140setenv = {[testenv:py27-pluggymaster]setenv}
136- deps = {[testenv:py27-pluggymaster]deps}
137141
138142[testenv:docs]
139143skipsdist = True
0 commit comments