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

Method __init__

src/_pytest/fixtures.py:868–880  ·  view source on GitHub ↗
(
        self,
        filename: Union[str, "os.PathLike[str]"],
        firstlineno: int,
        tblines: Sequence[str],
        errorstring: str,
        argname: Optional[str],
    )

Source from the content-addressed store, hash-verified

866
867class FixtureLookupErrorRepr(TerminalRepr):
868 def __init__(
869 self,
870 filename: Union[str, "os.PathLike[str]"],
871 firstlineno: int,
872 tblines: Sequence[str],
873 errorstring: str,
874 argname: Optional[str],
875 ) -> None:
876 self.tblines = tblines
877 self.errorstring = errorstring
878 self.filename = filename
879 self.firstlineno = firstlineno
880 self.argname = argname
881
882 def toterminal(self, tw: TerminalWriter) -> None:
883 # tw.line("FixtureLookupError: %s" %(self.argname), red=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected