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.
empty_parameter_set_mark
1 parent 799b72c commit 97ae6a0Copy full SHA for 97ae6a0
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,9 @@ 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 example, if they're dynamically
118
+generated by some function - the behaviour of pytest is defined by the ``empty_parameter_set_mark`` option.
119
+
120
To get all combinations of multiple parametrized arguments you can stack
121
``parametrize`` decorators::
122
0 commit comments