Skip to content

Commit 84a342e

Browse files
committed
doc: parametrize() can be called multiple times only on different args
Signed-off-by: Christoph Anton Mitterer <[email protected]>
1 parent cc0adf6 commit 84a342e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/_pytest/python.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,9 @@ def parametrize(
12391239
during the collection phase. If you need to setup expensive resources
12401240
see about setting indirect to do it rather than at test setup time.
12411241
1242-
Can be called multiple times, in which case each call parametrizes all
1243-
previous parametrizations, e.g.
1242+
Can be called multiple times per test function (but only on different
1243+
argument names), in which case each call parametrizes all previous
1244+
parametrizations, e.g.
12441245
12451246
::
12461247

0 commit comments

Comments
 (0)