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

Method newinstance

src/_pytest/python.py:790–791  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

788 return super().from_parent(name=name, parent=parent, **kw)
789
790 def newinstance(self):
791 return self.obj()
792
793 def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
794 if not safe_getattr(self.obj, "__test__", True):

Callers 2

collectMethod · 0.95
_getobjMethod · 0.80

Calls 1

objMethod · 0.80

Tested by

no test coverage detected