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

Function excstore

src/_pytest/unittest.py:370–384  ·  view source on GitHub ↗
(
            self, exc_value=None, exc_type=None, exc_tb=None, captureVars=None
        )

Source from the content-addressed store, hash-verified

368 check_testcase_implements_trial_reporter()
369
370 def excstore(
371 self, exc_value=None, exc_type=None, exc_tb=None, captureVars=None
372 ):
373 if exc_value is None:
374 self._rawexcinfo = sys.exc_info()
375 else:
376 if exc_type is None:
377 exc_type = type(exc_value)
378 self._rawexcinfo = (exc_type, exc_value, exc_tb)
379 try:
380 Failure__init__(
381 self, exc_value, exc_type, exc_tb, captureVars=captureVars
382 )
383 except TypeError:
384 Failure__init__(self, exc_value, exc_type, exc_tb)
385
386 ut.Failure.__init__ = excstore
387 yield

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected