Skip to content

Commit a2f4f5b

Browse files
toclarityDaniSancas
andcommitted
Add link to example
Co-authored-by: Dani Sancas <[email protected]>
1 parent a9a016a commit a2f4f5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_pytest/recwarn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ def warns(
144144
When using :ref:`pytest.mark.parametrize ref` it is possible to parametrize tests
145145
such that some runs raise a warning and others do not.
146146
147+
This could be achieved in the same way as with exceptions, see
148+
:ref:`parametrizing_conditional_raising` for an example.
149+
147150
"""
148151
__tracebackhide__ = True
149152
if not args:

0 commit comments

Comments
 (0)