Metafunc: remove hack for DefinitionMock

Done initially in 99015bfc8.
This commit is contained in:
Daniel Hahler
2019-11-18 17:36:15 +01:00
parent 64d8910516
commit 2ad2fbc9a2
2 changed files with 12 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ from _pytest import python
class TestMetafunc:
def Metafunc(self, func, config=None):
def Metafunc(self, func, config=None) -> python.Metafunc:
# the unit tests of this class check if things work correctly
# on the funcarg level, so we don't need a full blown
# initialization
@@ -23,7 +23,7 @@ class TestMetafunc:
self.names_closure = names
@attr.s
class DefinitionMock:
class DefinitionMock(python.FunctionDefinition):
obj = attr.ib()
names = fixtures.getfuncargnames(func)