MCPcopy Create free account
hub / github.com/RustPython/RustPython / B

Class B

Lib/test/test_hmac.py:1466–1468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1464
1465 def test_bytes_subclass(self):
1466 class B(bytes):
1467 def __eq__(self, other):
1468 raise ValueError("should not be called")
1469
1470 a, b = B(b"foobar"), B(b"foobar")
1471 self.assert_digest_equal(a, b)

Callers 1

test_bytes_subclassMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_bytes_subclassMethod · 0.56