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
This commit is contained in:
Bruno Oliveira
2019-03-06 19:08:34 -03:00
parent 148e6a30c8
commit b7ae7a654b
-5
View File
@@ -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