Skip to content

Commit 58d7aa9

Browse files
committed
python: fix confusing note in Metafunc.parametrize's docstring
`indirect` is useful for doing stuff at setup time, the current phrasing makes it sound like the opposite. Perhaps the `than` was meant to be omitted. But rephrase it anyway.
1 parent 433f3a6 commit 58d7aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def parametrize(
11681168
"""Add new invocations to the underlying test function using the list
11691169
of argvalues for the given argnames. Parametrization is performed
11701170
during the collection phase. If you need to setup expensive resources
1171-
see about setting indirect to do it rather than at test setup time.
1171+
see about setting ``indirect`` to do it at test setup time instead.
11721172
11731173
Can be called multiple times per test function (but only on different
11741174
argument names), in which case each call parametrizes all previous

0 commit comments

Comments
 (0)