Skip to content

Commit cd747c4

Browse files
Merge pull request #2874 from nicoddemus/fix-py27-xdist-envs-2843
Change directory for py27 xdist-related envs
2 parents 26019b3 + 27cea34 commit cd747c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

testing/test_assertrewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_place_initial_imports(self):
6666
s = """'Doc string'\nother = stuff"""
6767
m = rewrite(s)
6868
# Module docstrings in 3.7 are part of Module node, it's not in the body
69-
# so we remove it so the following body items have the same indexes on
69+
# so we remove it so the following body items have the same indexes on
7070
# all Python versions
7171
if sys.version_info < (3, 7):
7272
assert isinstance(m.body[0], ast.Expr)

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)