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

Method re_match_lines_random

src/_pytest/pytester.py:1606–1609  ·  view source on GitHub ↗

Check lines exist in the output in any order (using :func:`python:re.match`).

(self, lines2: Sequence[str])

Source from the content-addressed store, hash-verified

1604 self._match_lines_random(lines2, fnmatch)
1605
1606 def re_match_lines_random(self, lines2: Sequence[str]) -> None:
1607 """Check lines exist in the output in any order (using :func:`python:re.match`)."""
1608 __tracebackhide__ = True
1609 self._match_lines_random(lines2, lambda name, pat: bool(re.match(pat, name)))
1610
1611 def _match_lines_random(
1612 self, lines2: Sequence[str], match_func: Callable[[str, str], bool]

Callers 2

test_xdist_verboseMethod · 0.80
test_xdist_timesMethod · 0.80

Calls 2

_match_lines_randomMethod · 0.95
matchMethod · 0.80

Tested by

no test coverage detected