Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ B
Class
B
Lib/test/test_hmac.py:1420–1422 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1418
1419
def
test_bytes_subclass(self):
1420
class
B(bytes):
1421
def
__eq__(self, other):
1422
raise
ValueError(
"should not be called"
)
1423
1424
a, b = B(b
"foobar"
), B(b
"foobar"
)
1425
self.assert_digest_equal(a, b)
Callers
1
test_bytes_subclass
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_bytes_subclass
Method · 0.56