Skip to content

Commit afc5c7e

Browse files
better message for empty argument skip
include the argument names to help determining the fixture/parametrization
1 parent 03eb920 commit afc5c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_pytest/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ def parametrize(self, argnames, argvalues, indirect=False, ids=None,
992992
#
993993
fs, lineno = getfslineno(self.function)
994994
newmark = pytest.mark.skip(
995-
reason="got empty parameter set, function %s at %s:%d" % (
996-
self.function.__name__, fs, lineno))
995+
reason="got empty parameter set %r, function %s at %s:%d" % (
996+
argnames, self.function.__name__, fs, lineno))
997997
newmarks = newkeywords.setdefault(0, {})
998998
newmarks[newmark.markname] = newmark
999999

0 commit comments

Comments
 (0)