MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __repr__

Method __repr__

src/_pytest/capture.py:253–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 )
252
253 def __repr__(self) -> str:
254 return "<{} {} _old={} _state={!r} tmpfile={!r}>".format(
255 self.__class__.__name__,
256 self.name,
257 hasattr(self, "_old") and repr(self._old) or "<UNSET>",
258 self._state,
259 self.tmpfile,
260 )
261
262 def _assert_state(self, op: str, states: Tuple[str, ...]) -> None:
263 assert (

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected