fixtures: remove unhelpful FixtureManager.{FixtureLookupError,FixtureLookupErrorRepr}

Couldn't find any reason for this indirection, nor any plugins which
rely on it. Seems like historically it was done to avoid some imports...
This commit is contained in:
Ran Benita 2024-01-09 23:31:35 +02:00
parent 372c17e228
commit 368fa2c03e
1 changed files with 1 additions and 4 deletions

View File

@ -525,7 +525,7 @@ class FixtureRequest(abc.ABC):
:param msg: :param msg:
An optional custom error message. An optional custom error message.
""" """
raise self._fixturemanager.FixtureLookupError(None, self, msg) raise FixtureLookupError(None, self, msg)
def getfixturevalue(self, argname: str) -> Any: def getfixturevalue(self, argname: str) -> Any:
"""Dynamically run a named fixture function. """Dynamically run a named fixture function.
@ -1438,9 +1438,6 @@ class FixtureManager:
by a lookup of their FuncFixtureInfo. by a lookup of their FuncFixtureInfo.
""" """
FixtureLookupError = FixtureLookupError
FixtureLookupErrorRepr = FixtureLookupErrorRepr
def __init__(self, session: "Session") -> None: def __init__(self, session: "Session") -> None:
self.session = session self.session = session
self.config: Config = session.config self.config: Config = session.config