Skip to content

Add note about not monkey-patching builtins#1986

Merged
RonnyPfannschmidt merged 2 commits intopytest-dev:masterfrom
nicoddemus:monkeypatch-builtins-docs
Oct 5, 2016
Merged

Add note about not monkey-patching builtins#1986
RonnyPfannschmidt merged 2 commits intopytest-dev:masterfrom
nicoddemus:monkeypatch-builtins-docs

Conversation

@nicoddemus
Copy link
Copy Markdown
Member

Related to #1985

Copy link
Copy Markdown
Member

@RonnyPfannschmidt RonnyPfannschmidt left a 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

Comment thread doc/en/monkeypatch.rst Outdated

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also -s ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

@nicoddemus
Copy link
Copy Markdown
Member Author

(once this passes let's squash and merge please)

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 92.949% when pulling 7e00362 on nicoddemus:monkeypatch-builtins-docs into d47ae79 on pytest-dev:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 92.949% when pulling 8fd5e09 on nicoddemus:monkeypatch-builtins-docs into d47ae79 on pytest-dev:master.

@RonnyPfannschmidt
Copy link
Copy Markdown
Member

only trial fails

@RonnyPfannschmidt RonnyPfannschmidt merged commit 50b960c into pytest-dev:master Oct 5, 2016
@nicoddemus
Copy link
Copy Markdown
Member Author

Thanks!

@nicoddemus nicoddemus deleted the monkeypatch-builtins-docs branch October 5, 2016 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants