From 79e658c4a26d485a65af2bd697b470138ceb6fe3 Mon Sep 17 00:00:00 2001 From: Tatiana Ovary Date: Wed, 10 Aug 2022 10:12:28 +0200 Subject: [PATCH] Add link to example Co-authored-by: Dani Sancas --- src/_pytest/recwarn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index 69a7aeeb8..0cf860f6a 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -144,6 +144,9 @@ def warns( When using :ref:`pytest.mark.parametrize ref` it is possible to parametrize tests such that some runs raise a warning and others do not. + This could be achieved in the same way as with exceptions, see + :ref:`parametrizing_conditional_raising` for an example. + """ __tracebackhide__ = True if not args: