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

Function possible_match

src/_pytest/raises.py:1496–1505  ·  view source on GitHub ↗
(results: ResultHolder, used: set[int] | None = None)

Source from the content-addressed store, hash-verified

1494
1495
1496def possible_match(results: ResultHolder, used: set[int] | None = None) -> bool:
1497 if used is None:
1498 used = set()
1499 curr_row = len(used)
1500 if curr_row == len(results.results):
1501 return True
1502 return any(
1503 val is None and i not in used and possible_match(results, used | {i})
1504 for (i, val) in enumerate(results.results[curr_row])
1505 )

Callers 1

_check_exceptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected