diff --git a/doc/en/monkeypatch.rst b/doc/en/monkeypatch.rst index 3dc311dd1..b25e07f9a 100644 --- a/doc/en/monkeypatch.rst +++ b/doc/en/monkeypatch.rst @@ -69,6 +69,7 @@ so that any attempts within tests to create http requests will fail. :meth:`MonkeyPatch.context` to limit the patching to the block you want tested: .. code-block:: python + import functools def test_partial(monkeypatch): with monkeypatch.context() as m: