diff --git a/src/_pytest/monkeypatch.py b/src/_pytest/monkeypatch.py index 3f398df76..f498d60df 100644 --- a/src/_pytest/monkeypatch.py +++ b/src/_pytest/monkeypatch.py @@ -142,6 +142,7 @@ class MonkeyPatch: which undoes any patching done inside the ``with`` block upon exit. Example: + .. code-block:: python import functools