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

Method setup_method

testing/code/test_excinfo.py:103–107  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

101
102class TestTraceback_f_g_h:
103 def setup_method(self, method):
104 try:
105 h()
106 except ValueError:
107 self.excinfo = _pytest._code.ExceptionInfo.from_current()
108
109 def test_traceback_entries(self):
110 tb = self.excinfo.traceback

Callers

nothing calls this directly

Calls 2

from_currentMethod · 0.80
hFunction · 0.70

Tested by

no test coverage detected