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

Method raiseerror

src/_pytest/fixtures.py:586–592  ·  view source on GitHub ↗

Raise a FixtureLookupError exception. :param msg: An optional custom error message.

(self, msg: str | None)

Source from the content-addressed store, hash-verified

584 self.node.add_marker(marker)
585
586 def raiseerror(self, msg: str | None) -> NoReturn:
587 """Raise a FixtureLookupError exception.
588
589 :param msg:
590 An optional custom error message.
591 """
592 raise FixtureLookupError(None, self, msg)
593
594 def _raise_teardown_lookup_error(self, argname: str) -> NoReturn:
595 msg = (

Callers 1

set_fixtureMethod · 0.80

Calls 1

FixtureLookupErrorClass · 0.85

Tested by

no test coverage detected