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:
91b6f2bda8/_pytest/python.py (L888-L891)
This commit is contained in:
parent
148e6a30c8
commit
b7ae7a654b
|
@ -1414,11 +1414,6 @@ class Function(FunctionMixin, nodes.Item, fixtures.FuncargnamesCompatAttr):
|
||||||
|
|
||||||
def _initrequest(self):
|
def _initrequest(self):
|
||||||
self.funcargs = {}
|
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)
|
self._request = fixtures.FixtureRequest(self)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue