Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ Foo
Class
Foo
testing/test_assertrewrite.py:721–725 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
719
def
test_custom_repr(self, request) -> None:
720
def
f() -> None:
721
class
Foo:
722
a = 1
723
724
def
__repr__(self):
725
return
"\n{ \n~ \n}"
726
727
f = Foo()
728
assert 0 == f.a
Callers
1
f
Method · 0.70
Calls
no outgoing calls
Tested by
1
f
Method · 0.56