Merge pull request #2983 from nicoddemus/improve-assert-2979

Improve getscopeitem assertion message
This commit is contained in:
Ronny Pfannschmidt
2017-11-30 16:58:29 +01:00
committed by GitHub

View File

@@ -553,7 +553,7 @@ class FixtureRequest(FuncargnamesCompatAttr):
if node is None and scope == "class":
# fallback to function item itself
node = self._pyfuncitem
assert node
assert node, 'Could not obtain a node for scope "{}" for function {!r}'.format(scope, self._pyfuncitem)
return node
def __repr__(self):