Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ test_obj_class_name
Function
test_obj_class_name
tests/test_class.py:29–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
29
def
test_obj_class_name():
30
expected_name =
"UserType"
if
env.PYPY
else
"pybind11_tests.UserType"
31
assert m.obj_class_name(UserType(1)) == expected_name
32
assert m.obj_class_name(UserType) == expected_name
33
34
35
def
test_repr():
Callers
nothing calls this directly
Calls
1
UserType
Class · 0.90
Tested by
no test coverage detected