diff --git a/changelog/1548.doc b/changelog/1548.doc new file mode 100644 index 000000000..84ad8f10c --- /dev/null +++ b/changelog/1548.doc @@ -0,0 +1 @@ +Add note in ``parametrize.rst`` about calling ``metafunc.parametrize`` multiple times. \ No newline at end of file diff --git a/doc/en/parametrize.rst b/doc/en/parametrize.rst index d1d47c229..6215cf133 100644 --- a/doc/en/parametrize.rst +++ b/doc/en/parametrize.rst @@ -198,6 +198,10 @@ list:: SKIP [1] test_strings.py:2: got empty parameter set ['stringinput'], function test_valid_string at $REGENDOC_TMPDIR/test_strings.py:1 1 skipped in 0.12 seconds + +Note that when calling ``metafunc.parametrize`` multiple times with different parameter sets, all parameter names across +those sets cannot be duplicated, otherwise an error will be raised. + For further examples, you might want to look at :ref:`more parametrization examples `.