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

Function _format_boolop

src/_pytest/assertion/rewrite.py:485–487  ·  view source on GitHub ↗
(explanations: Iterable[str], is_or: bool)

Source from the content-addressed store, hash-verified

483
484
485def _format_boolop(explanations: Iterable[str], is_or: bool) -> str:
486 explanation = "(" + (is_or and " or " or " and ").join(explanations) + ")"
487 return explanation.replace("%", "%%")
488
489
490def _call_reprcompare(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected