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

Method test_bytes_diff_normal

testing/test_assertion.py:576–585  ·  view source on GitHub ↗

Check special handling for bytes diff (#5260)

(self)

Source from the content-addressed store, hash-verified

574 ]
575
576 def test_bytes_diff_normal(self) -> None:
577 """Check special handling for bytes diff (#5260)"""
578 diff = callequal(b"spam", b"eggs")
579
580 assert diff == [
581 "b'spam' == b'eggs'",
582 "",
583 "At index 0 diff: b's' != b'e'",
584 "Use -v to get more diff",
585 ]
586
587 def test_bytes_diff_verbose(self) -> None:
588 """Check special handling for bytes diff (#5260)"""

Callers

nothing calls this directly

Calls 1

callequalFunction · 0.85

Tested by

no test coverage detected