From 2b5c2f3ed58e4c3bf9185318a003cbc39dde16e6 Mon Sep 17 00:00:00 2001 From: Oliver Bestwalter Date: Tue, 21 Jun 2016 14:57:48 +0200 Subject: [PATCH] help the user in the rare case this assertion actually fails --- _pytest/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/python.py b/_pytest/python.py index 21d78aea3..ddfb90b93 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1987,7 +1987,7 @@ class FixtureManager: # 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,