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:
parent
372c17e228
commit
368fa2c03e
|
@ -525,7 +525,7 @@ class FixtureRequest(abc.ABC):
|
|||
:param msg:
|
||||
An optional custom error message.
|
||||
"""
|
||||
raise self._fixturemanager.FixtureLookupError(None, self, msg)
|
||||
raise FixtureLookupError(None, self, msg)
|
||||
|
||||
def getfixturevalue(self, argname: str) -> Any:
|
||||
"""Dynamically run a named fixture function.
|
||||
|
@ -1438,9 +1438,6 @@ class FixtureManager:
|
|||
by a lookup of their FuncFixtureInfo.
|
||||
"""
|
||||
|
||||
FixtureLookupError = FixtureLookupError
|
||||
FixtureLookupErrorRepr = FixtureLookupErrorRepr
|
||||
|
||||
def __init__(self, session: "Session") -> None:
|
||||
self.session = session
|
||||
self.config: Config = session.config
|
||||
|
|
Loading…
Reference in New Issue