Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ test_repr_on_newstyle
Function
test_repr_on_newstyle
testing/io/test_saferepr.py:147–152 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
145
146
147
def
test_repr_on_newstyle() -> None:
148
class
Function:
149
def
__repr__(self):
150
return
f
"<{self.name}>"
# type: ignore[attr-defined]
151
152
assert saferepr(Function())
153
154
155
def
test_unicode():
Callers
nothing calls this directly
Calls
2
saferepr
Function · 0.90
Function
Class · 0.70
Tested by
no test coverage detected