Skip to content

Commit c3ba922

Browse files
committed
Change directory for py27 xdist-related envs
The "filter_traceback" function was not filtering the frames that belonged to the pytest internals. "filter_traceback" was receiving *relative* paths when running with xdist, and full paths in non-distributed runs; for this reason the traceback function did not consider the received path to be relative to the pytest internal modules. Fix #2843
1 parent 111d640 commit c3ba922

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ deps =
6464
mock
6565
nose
6666
hypothesis>=3.5.2
67+
changedir=testing
6768
commands =
68-
pytest -n1 -rfsxX {posargs:testing}
69+
pytest -n1 -rfsxX {posargs:.}
6970

7071
[testenv:py36-xdist]
7172
deps = {[testenv:py27-xdist]deps}
@@ -91,10 +92,11 @@ deps =
9192
pytest-xdist>=1.13
9293
hypothesis>=3.5.2
9394
distribute = true
95+
changedir=testing
9496
setenv =
9597
PYTHONDONTWRITEBYTECODE=1
9698
commands =
97-
pytest -n3 -rfsxX {posargs:testing}
99+
pytest -n3 -rfsxX {posargs:.}
98100

99101
[testenv:py27-trial]
100102
deps = twisted

0 commit comments

Comments
 (0)