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

Method test_bytes_diff_normal

testing/test_assertion.py:372–380  ·  view source on GitHub ↗

Check special handling for bytes diff (#5260)

(self)

Source from the content-addressed store, hash-verified

370 assert "+ spam" in diff
371
372 def test_bytes_diff_normal(self) -> None:
373 """Check special handling for bytes diff (#5260)"""
374 diff = callequal(b"spam", b"eggs")
375
376 assert diff == [
377 "b'spam' == b'eggs'",
378 "At index 0 diff: b's' != b'e'",
379 "Use -v to get the full diff",
380 ]
381
382 def test_bytes_diff_verbose(self) -> None:
383 """Check special handling for bytes diff (#5260)"""

Callers

nothing calls this directly

Calls 1

callequalFunction · 0.85

Tested by

no test coverage detected