better message for empty argument skip
include the argument names to help determining the fixture/parametrization
This commit is contained in:
parent
03eb9203fd
commit
afc5c7e4f6
|
@ -992,8 +992,8 @@ class Metafunc(FuncargnamesCompatAttr):
|
||||||
#
|
#
|
||||||
fs, lineno = getfslineno(self.function)
|
fs, lineno = getfslineno(self.function)
|
||||||
newmark = pytest.mark.skip(
|
newmark = pytest.mark.skip(
|
||||||
reason="got empty parameter set, function %s at %s:%d" % (
|
reason="got empty parameter set %r, function %s at %s:%d" % (
|
||||||
self.function.__name__, fs, lineno))
|
argnames, self.function.__name__, fs, lineno))
|
||||||
newmarks = newkeywords.setdefault(0, {})
|
newmarks = newkeywords.setdefault(0, {})
|
||||||
newmarks[newmark.markname] = newmark
|
newmarks[newmark.markname] = newmark
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue