MCPcopy
hub / github.com/pytest-dev/pytest / _dump_lines

Method _dump_lines

src/_pytest/pytester.py:1473–1478  ·  view source on GitHub ↗
(self, lines, fp)

Source from the content-addressed store, hash-verified

1471 return RunResult(ret, out, err, instant.elapsed().seconds)
1472
1473 def _dump_lines(self, lines, fp):
1474 try:
1475 for line in lines:
1476 print(line, file=fp)
1477 except UnicodeEncodeError:
1478 print(f"couldn't print to {fp} because of encoding")
1479
1480 def _getpytestargs(self) -> tuple[str, ...]:
1481 return sys.executable, "-mpytest"

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected