-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
pytest-dev/pytest
#6992Description
The removal of _tmpdirhandler from the config object (pytest-dev/pytest@8a1633c, pytest-dev/pytest#6767) breaks
pytest-xdist/src/xdist/workermanage.py
Lines 255 to 257 in 136663a
| if hasattr(self.config, "_tmpdirhandler"): | |
| basetemp = self.config._tmpdirhandler.getbasetemp() | |
| option_dict["basetemp"] = str(basetemp.join(name)) |
Tested in
pytest-xdist/testing/acceptance_test.py
Lines 118 to 129 in 136663a
| def test_basetemp_in_subprocesses(self, testdir): | |
| p1 = testdir.makepyfile( | |
| """ | |
| def test_send(tmpdir): | |
| import py | |
| assert tmpdir.relto(py.path.local(%r)), tmpdir | |
| """ | |
| % str(testdir.tmpdir) | |
| ) | |
| result = testdir.runpytest_subprocess(p1, "-n1") | |
| assert result.ret == 0 | |
| result.stdout.fnmatch_lines(["*1 passed*"]) |
Metadata
Metadata
Assignees
Labels
No labels