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

Class S

Lib/test/test_hmac.py:1454–1456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1452
1453 def test_string_subclass(self):
1454 class S(str):
1455 def __eq__(self, other):
1456 raise ValueError("should not be called")
1457
1458 a, b = S("foobar"), S("foobar")
1459 self.assert_digest_equal(a, b)

Callers 1

test_string_subclassMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_string_subclassMethod · 0.56