We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0303285 commit af0d67aCopy full SHA for af0d67a
src/_pytest/fixtures.py
@@ -1263,13 +1263,13 @@ def __repr__(self) -> str:
1263
return f"<pytest_fixture({self._fixture_function})>"
1264
1265
def __get__(
1266
- self, obj: object, objtype: type | None = None
+ self, instance: object, owner: type | None = None
1267
) -> FixtureFunctionDefinition[FixtureParams, FixtureValue]:
1268
"""Behave like a method if the function it was applied to was a method."""
1269
return FixtureFunctionDefinition(
1270
function=self._fixture_function,
1271
fixture_function_marker=self._fixture_function_marker,
1272
- instance=obj,
+ instance=instance,
1273
_ispytest=True,
1274
)
1275
0 commit comments