MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _getlines

Method _getlines

src/_pytest/pytester.py:1547–1552  ·  view source on GitHub ↗
(self, lines2: Union[str, Sequence[str], Source])

Source from the content-addressed store, hash-verified

1545 return "\n".join(self.lines)
1546
1547 def _getlines(self, lines2: Union[str, Sequence[str], Source]) -> Sequence[str]:
1548 if isinstance(lines2, str):
1549 lines2 = Source(lines2)
1550 if isinstance(lines2, Source):
1551 lines2 = lines2.strip().lines
1552 return lines2
1553
1554 def fnmatch_lines_random(self, lines2: Sequence[str]) -> None:
1555 """Check lines exist in the output in any order (using :func:`python:fnmatch.fnmatch`)."""

Callers 3

_match_lines_randomMethod · 0.95
_match_linesMethod · 0.95

Calls 2

stripMethod · 0.95
SourceClass · 0.90

Tested by

no test coverage detected