Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __len__
Method
__len__
src/_pytest/capture.py:484–485 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
482
self.err: AnyStr = err
483
484
def
__len__(self) -> int:
485
return
2
486
487
def
__iter__(self) -> Iterator[AnyStr]:
488
return
iter((self.out, self.err))
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected