better message for empty argument skip

include the argument names to help determining the fixture/parametrization
This commit is contained in:
Ronny Pfannschmidt 2016-05-30 14:42:55 +02:00
parent 03eb9203fd
commit afc5c7e4f6
1 changed files with 2 additions and 2 deletions

View File

@ -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