We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72d98a7 + 0dd8515 commit 8bced74Copy full SHA for 8bced74
changelog/3851.doc.rst
@@ -0,0 +1 @@
1
+Add reference to ``empty_parameter_set_mark`` ini option in documentation of ``@pytest.mark.parametrize``
doc/en/parametrize.rst
@@ -114,6 +114,10 @@ Let's run this::
114
The one parameter set which caused a failure previously now
115
shows up as an "xfailed (expected to fail)" test.
116
117
+In case the values provided to ``parametrize`` result in an empty list - for
118
+example, if they're dynamically generated by some function - the behaviour of
119
+pytest is defined by the :confval:`empty_parameter_set_mark` option.
120
+
121
To get all combinations of multiple parametrized arguments you can stack
122
``parametrize`` decorators::
123
0 commit comments