MCPcopy Create free account
hub / github.com/pybind/pybind11 / Unhashable

Class Unhashable

tests/test_pytypes.py:209–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207)
208def test_unhashable_exceptions(arg, func):
209 class Unhashable:
210 __hash__ = None
211
212 with pytest.raises(TypeError) as exc_info:
213 func(arg, Unhashable())

Callers 2

test_hashFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_hashFunction · 0.68