Skip to content

Commit 7e2a507

Browse files
author
Julian Gilbey
committed
Specify rootdir to recursive pytest calls
1 parent abcc536 commit 7e2a507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_xdist_handling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def test_first_string():
5959
)
6060
)
6161
# With `loadfile`, the tests should pass
62-
args = ["-n3", "--dist=loadfile", str(tmpdir)]
62+
args = ["-n3", "--dist=loadfile", f"--rootdir={tmpdir}", str(tmpdir)]
6363
ret = pytest.main(args, [pytest_order])
6464
assert ret == 0
6565

6666
# Without `loadfile`, the tests should fail
67-
args = ["-n3", str(tmpdir)]
67+
args = ["-n3", f"--rootdir={tmpdir}", str(tmpdir)]
6868
ret = pytest.main(args, [pytest_order])
6969
assert ret == 1

0 commit comments

Comments
 (0)