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

Method _getinstance

src/_pytest/unittest.py:235–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 _excinfo: list[_pytest._code.ExceptionInfo[BaseException]] | None = None
234
235 def _getinstance(self):
236 assert isinstance(self.parent, UnitTestCase)
237 return self.parent.obj(self.name)
238
239 # Backward compat for pytest-django; can be removed after pytest-django
240 # updates + some slack.

Callers

nothing calls this directly

Calls 1

objMethod · 0.80

Tested by

no test coverage detected