Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __len__
Method
__len__
testing/python/approx.py:868–869 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
866
return
iter([1, 2, 3, 4])
867
868
def
__len__(self):
869
return
4
870
871
expected = MySizedIterable()
872
assert [1, 2, 3, 4] == approx(expected)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected