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

Method test_mojibake

testing/test_assertion.py:786–795  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

784 assert util.format_explanation("λ")
785
786 def test_mojibake(self) -> None:
787 # issue 429
788 left = b"e"
789 right = b"\xc3\xa9"
790 expl = callequal(left, right)
791 assert expl is not None
792 for line in expl:
793 assert isinstance(line, str)
794 msg = "\n".join(expl)
795 assert msg
796
797
798class TestAssert_reprcompare_dataclass:

Callers

nothing calls this directly

Calls 1

callequalFunction · 0.85

Tested by

no test coverage detected