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

Method for_later

src/_pytest/_code/code.py:518–520  ·  view source on GitHub ↗

Return an unfilled ExceptionInfo.

(cls)

Source from the content-addressed store, hash-verified

516
517 @classmethod
518 def for_later(cls) -> "ExceptionInfo[E]":
519 """Return an unfilled ExceptionInfo."""
520 return cls(None, _ispytest=True)
521
522 def fill_unfilled(self, exc_info: Tuple[Type[E], E, TracebackType]) -> None:
523 """Fill an unfilled ExceptionInfo created with ``for_later()``."""

Callers 2

__enter__Method · 0.80
test_excinfo_for_laterFunction · 0.80

Calls 1

clsFunction · 0.85

Tested by 1

test_excinfo_for_laterFunction · 0.64