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

Method test_bytes_diff_verbose

testing/test_assertion.py:382–391  ·  view source on GitHub ↗

Check special handling for bytes diff (#5260)

(self)

Source from the content-addressed store, hash-verified

380 ]
381
382 def test_bytes_diff_verbose(self) -> None:
383 """Check special handling for bytes diff (#5260)"""
384 diff = callequal(b"spam", b"eggs", verbose=1)
385 assert diff == [
386 "b'spam' == b'eggs'",
387 "At index 0 diff: b's' != b'e'",
388 "Full diff:",
389 "- b'eggs'",
390 "+ b'spam'",
391 ]
392
393 def test_list(self) -> None:
394 expl = callequal([0, 1], [0, 2])

Callers

nothing calls this directly

Calls 1

callequalFunction · 0.85

Tested by

no test coverage detected