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
commit 4de433e280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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):