Skip to content

Only construct DynamicPatcher if necessary #336

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

Conversation

absolutelyNoWarranty
Copy link
Contributor

@absolutelyNoWarranty absolutelyNoWarranty commented Dec 24, 2017

Solves issue #334, which is caused by DynamicPatcher deleting stuff from sys.modules during its initialization.

Verified

This commit was signed with the committer’s verified signature.
Evalir evalir
Copy link
Member

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

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

Thanks for the Xmas fix! This looks good - was obviously a mistake to create the patcher if it is not neesed.
I plan to have another go at the dynamic patcher some time later anyway to make it really usable.

@mrbean-bremen mrbean-bremen merged commit 09632f9 into pytest-dev:master Dec 24, 2017
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.

None yet

2 participants