MCPcopy
hub / github.com/pytest-dev/pytest-xdist / replace

Method replace

src/xdist/remote.py:96–98  ·  view source on GitHub ↗
(self, iterable: Iterable[Item])

Source from the content-addressed store, hash-verified

94 locked_items.append(item)
95
96 def replace(self, iterable: Iterable[Item]) -> None:
97 with self.lock():
98 self._items = collections.deque(iterable)
99
100 @contextlib.contextmanager
101 def lock(self) -> Generator[collections.deque[Item]]:

Callers 2

stealMethod · 0.80
pytest_testnodereadyMethod · 0.80

Calls 1

lockMethod · 0.95

Tested by

no test coverage detected