summaryrefslogtreecommitdiff
path: root/_pytest
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-03-17 22:04:22 +0100
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-03-29 17:52:01 +0200
commit99015bfc86d6ad309bdd9abbe2c0700d58ca36d1 (patch)
tree59163989f9b7d491a4d9b967c1732fd17b3573b2 /_pytest
parent180ae0920235e883138d56fa4274565793058465 (diff)
downloadpytest-99015bfc86d6ad309bdd9abbe2c0700d58ca36d1.tar.gz
fix most of metafunc tests by mocking
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/python.py b/_pytest/python.py
index 843d7f534..e33de018e 100644
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -736,7 +736,7 @@ class Metafunc(fixtures.FuncargnamesCompatAttr):
def __init__(self, definition, fixtureinfo, config, cls=None, module=None):
#: access to the :class:`_pytest.config.Config` object for the test session
- assert isinstance(definition, FunctionDefinition)
+ assert isinstance(definition, FunctionDefinition) or type(definition).__name__ == "DefinitionMock"
self.definition = definition
self.config = config