Skip to content

Commit

Permalink
Fix node_path.relative_to(...) in _DistributedSetupCoordinatorImpl.ma…
Browse files Browse the repository at this point in the history
…ybe_call_setup to work correctly on Windows.
  • Loading branch information
Vitaly Kruglikov committed Oct 25, 2024
1 parent 52c0815 commit 95b91c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xdist/iso_scheduling_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ def maybe_call_setup(
self._setup_context is None
), f"maybe_call_setup()` already called {self._setup_context=}"

node_path = self._setup_request.node.path
node_path: pathlib.Path = self._setup_request.node.path

root_context_dir: pathlib.Path = (
self._root_context_base_dir
/ node_path.relative_to(node_path.root)
/ node_path.relative_to(node_path.parts[0])
/ self._setup_request.node.name
)

Expand Down

0 comments on commit 95b91c8

Please sign in to comment.