We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d47ae79 commit 50b960cCopy full SHA for 50b960c
doc/en/monkeypatch.rst
@@ -55,6 +55,14 @@ will delete the method ``request.session.Session.request``
55
so that any attempts within tests to create http requests will fail.
56
57
58
+.. note::
59
+
60
+ Be advised that it is not recommended to patch builtin functions such as ``open``,
61
+ ``compile``, etc., because it might break pytest's internals. If that's
62
+ unavoidable, passing ``--tb=native``, ``--assert=plain`` and ``--capture=no`` might
63
+ help althought there's no guarantee.
64
65
66
Method reference of the monkeypatch fixture
67
-------------------------------------------
68
0 commit comments