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

Method my_reprcompare1

testing/test_assertrewrite.py:670–671  ·  view source on GitHub ↗
(op, left, right)

Source from the content-addressed store, hash-verified

668
669 def test_custom_reprcompare(self, monkeypatch) -> None:
670 def my_reprcompare1(op, left, right) -> str:
671 return "42"
672
673 monkeypatch.setattr(util, "_reprcompare", my_reprcompare1)
674

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected