diff --git a/_pytest/python.py b/_pytest/python.py index 21d78aea337..ddfb90b93e9 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1987,7 +1987,7 @@ def parsefactories(self, node_or_obj, nodeid=NOTSET, unittest=False): # fixture attribute continue else: - assert not name.startswith(self._argprefix) + assert not name.startswith(self._argprefix), name fixturedef = FixtureDef(self, nodeid, name, obj, marker.scope, marker.params, yieldctx=marker.yieldctx,