From 696c702da78ad162294bb6a7dd9d2b36fed6a3aa Mon Sep 17 00:00:00 2001 From: Xuan Luong Date: Sat, 9 Sep 2017 20:50:45 -0400 Subject: [PATCH] Update documentation on multiple calls of metafunc.parametrize --- changelog/1548.doc | 1 + doc/en/parametrize.rst | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 changelog/1548.doc 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 `.