Improve getscopeitem assertion message

Fix #2979
This commit is contained in:
Bruno Oliveira 2017-11-30 07:47:00 -02:00
parent 88ed1ab648
commit 70f1e3b4b0
1 changed files with 1 additions and 1 deletions

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):