diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 537c42d0d..e41acfecc 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1414,11 +1414,6 @@ class Function(FunctionMixin, nodes.Item, fixtures.FuncargnamesCompatAttr): def _initrequest(self): self.funcargs = {} - if hasattr(self, "callspec"): - callspec = self.callspec - assert not callspec.funcargs - if hasattr(callspec, "param"): - self.param = callspec.param self._request = fixtures.FixtureRequest(self) @property