diff options
author | Daniel Hahler <git@thequod.de> | 2019-11-18 17:36:15 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-11-18 18:19:34 +0100 |
commit | 2ad2fbc9a222f3ab2cab5379972c40d3f5ad2db1 (patch) | |
tree | 84f9f8ececb839d804381d3bee33e55e57de7d01 /testing | |
parent | 64d89105166264ad5169869bae8b945f542e7fb4 (diff) | |
download | pytest-2ad2fbc9a222f3ab2cab5379972c40d3f5ad2db1.tar.gz |
Metafunc: remove hack for DefinitionMock
Done initially in 99015bfc8.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/python/metafunc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index 0c3c2aed3..1c396c4a7 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -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) |