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 fc02003 commit 7e00362Copy full SHA for 7e00362
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`` and/or ``--assert=plain`` might help althought
63
+ there's no guarantee.
64
65
66
Method reference of the monkeypatch fixture
67
-------------------------------------------
68
0 commit comments