Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
)
208
def
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_unhashable_exceptions
Function · 0.85
test_hash
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_unhashable_exceptions
Function · 0.68
test_hash
Function · 0.68