Skip to content

Commit 61ede09

Browse files
authored
Merge pull request #1631 from Avira/master
help the user in the rare case this assertion actually fails
2 parents 2f9d5c2 + 2b5c2f3 commit 61ede09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ def parsefactories(self, node_or_obj, nodeid=NOTSET, unittest=False):
19871987
# fixture attribute
19881988
continue
19891989
else:
1990-
assert not name.startswith(self._argprefix)
1990+
assert not name.startswith(self._argprefix), name
19911991
fixturedef = FixtureDef(self, nodeid, name, obj,
19921992
marker.scope, marker.params,
19931993
yieldctx=marker.yieldctx,

0 commit comments

Comments
 (0)