From e75cdae2bc92c8b1c53114addf5fd23a4dad796d Mon Sep 17 00:00:00 2001 From: Rowin Date: Mon, 14 Mar 2022 13:26:17 +0100 Subject: [PATCH] Typo correction A word was missing in the docstring of the warns function. --- src/_pytest/recwarn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index 175b571a8..b460668fe 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -110,7 +110,7 @@ def warns( r"""Assert that code raises a particular class of warning. Specifically, the parameter ``expected_warning`` can be a warning class or - sequence of warning classes, and the inside the ``with`` block must issue a warning of that class or + sequence of warning classes, and the code inside the ``with`` block must issue a warning of that class or classes. This helper produces a list of :class:`warnings.WarningMessage` objects,