MCPcopy
hub / github.com/pytest-dev/pytest / setup_method

Method setup_method

testing/code/test_excinfo.py:124–128  ·  testing/code/test_excinfo.py::TestTraceback_f_g_h.setup_method
(self, method)

Source from the content-addressed store, hash-verified

122
123class TestTraceback_f_g_h:
124 def setup_method(self, method):
125 try:
126 h()
127 except ValueError:
128 self.excinfo = _pytest._code.ExceptionInfo.from_current()
129
130 def test_traceback_entries(self):
131 tb = self.excinfo.traceback

Callers

nothing calls this directly

Calls 2

from_currentMethod · 0.80
hFunction · 0.70

Tested by

no test coverage detected