From afc5c7e4f6b374d161930c72698325e7d8f3ece0 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 30 May 2016 14:42:55 +0200 Subject: [PATCH] better message for empty argument skip include the argument names to help determining the fixture/parametrization --- _pytest/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_pytest/python.py b/_pytest/python.py index aaca2b240..8543549df 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -992,8 +992,8 @@ class Metafunc(FuncargnamesCompatAttr): # fs, lineno = getfslineno(self.function) newmark = pytest.mark.skip( - reason="got empty parameter set, function %s at %s:%d" % ( - self.function.__name__, fs, lineno)) + reason="got empty parameter set %r, function %s at %s:%d" % ( + argnames, self.function.__name__, fs, lineno)) newmarks = newkeywords.setdefault(0, {}) newmarks[newmark.markname] = newmark