summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-11-18 17:36:15 +0100
committerDaniel Hahler <git@thequod.de>2019-11-18 18:19:34 +0100
commit2ad2fbc9a222f3ab2cab5379972c40d3f5ad2db1 (patch)
tree84f9f8ececb839d804381d3bee33e55e57de7d01 /testing
parent64d89105166264ad5169869bae8b945f542e7fb4 (diff)
downloadpytest-2ad2fbc9a222f3ab2cab5379972c40d3f5ad2db1.tar.gz
Metafunc: remove hack for DefinitionMock
Done initially in 99015bfc8.
Diffstat (limited to 'testing')
-rw-r--r--testing/python/metafunc.py4
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)