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

Method test_formatchar

testing/test_assertrewrite.py:711–717  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

709 assert "<MY42 object> < 0" in msg
710
711 def test_formatchar(self) -> None:
712 def f() -> None:
713 assert "%test" == "test" # type: ignore[comparison-overlap]
714
715 msg = getmsg(f)
716 assert msg is not None
717 assert msg.startswith("assert '%test' == 'test'")
718
719 def test_custom_repr(self, request) -> None:
720 def f() -> None:

Callers

nothing calls this directly

Calls 1

getmsgFunction · 0.85

Tested by

no test coverage detected