MCPcopy
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
147def 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
155def test_unicode():

Callers

nothing calls this directly

Calls 2

safereprFunction · 0.90
FunctionClass · 0.70

Tested by

no test coverage detected