Skip to content

Commit d794b27

Browse files
committed
Use config._tmp_path_factory instead of config._tmpdirhandler
Both are private, and shouldn't be used, but not sure how to fix it currently. But `_tmpdirhandler` will be relegated to the legacypath plugin so should extra not be used.
1 parent 787b8d9 commit d794b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xdist/workermanage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ def setup(self):
254254
args = make_reltoroot(self.nodemanager.roots, args)
255255
if spec.popen:
256256
name = "popen-%s" % self.gateway.id
257-
if hasattr(self.config, "_tmpdirhandler"):
258-
basetemp = self.config._tmpdirhandler.getbasetemp()
259-
option_dict["basetemp"] = str(basetemp.join(name))
257+
if hasattr(self.config, "_tmp_path_factory"):
258+
basetemp = self.config._tmp_path_factory.getbasetemp()
259+
option_dict["basetemp"] = str(basetemp / name)
260260
self.config.hook.pytest_configure_node(node=self)
261261

262262
remote_module = self.config.hook.pytest_xdist_getremotemodule()

0 commit comments

Comments
 (0)