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

Method rewrite

src/xdist/dsession.py:506–513  ·  view source on GitHub ↗
(self, line: str, newline: bool = False)

Source from the content-addressed store, hash-verified

504 return "bringing up nodes..."
505
506 def rewrite(self, line: str, newline: bool = False) -> None:
507 pline = line + " " * max(self._lastlen - len(line), 0)
508 if newline:
509 self._lastlen = 0
510 pline += "\n"
511 else:
512 self._lastlen = len(line)
513 self.tr.rewrite(pline, bold=True)
514
515 @pytest.hookimpl
516 def pytest_xdist_setupnodes(self, specs: Sequence[execnet.XSpec]) -> None:

Callers 3

setstatusMethod · 0.95
pytest_testnodereadyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected