From b7ae7a654b672ef3d6f496385c7dd6884e077ea7 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 6 Mar 2019 19:08:34 -0300 Subject: [PATCH] Remove callspec related block of code It seems this is no longer required now that we don't support yield tests anymore. The param attribute was added here: https://github.com/pytest-dev/pytest/blob/91b6f2bda8668e0f74190ed223a9eec01d09a0a7/_pytest/python.py#L888-L891 --- src/_pytest/python.py | 5 ----- 1 file changed, 5 deletions(-) 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