-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add note about not monkey-patching builtins #1986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add note about not monkey-patching builtins #1986
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done, please mention -s
as well
|
||
Be advised that it is not recommended to patch builtin functions such as ``open``, | ||
``compile``, etc., because it might break pytest's internals. If that's | ||
unavoidable, passing ``--tb=native`` and/or ``--assert=plain`` might help althought |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also -s
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!
(once this passes let's squash and merge please) |
only trial fails |
Thanks! |
Related to #1985