Skip to content
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

pytest plugin should lazy-load requests_mock #195

Merged
merged 2 commits into from
Apr 19, 2022
Merged

pytest plugin should lazy-load requests_mock #195

merged 2 commits into from
Apr 19, 2022

Conversation

ikonst
Copy link
Contributor

@ikonst ikonst commented Feb 18, 2022

Importing requests_mock early (during pytest initialization) drags in requests which drags in ssl.

Not only it slows down pytest startup, in the gevent "ecosystem" it interferes with the ability to do gevent monkey-patching early on.

ikonst and others added 2 commits February 18, 2022 13:30
This PR seems fine, however lacks a comment for why we would be late
loading the main module. Add it so we can merge rather than go back and
forwards about a minor comment.
@jamielennox jamielennox merged commit 0aeaecd into jamielennox:master Apr 19, 2022
@ikonst ikonst deleted the patch-1 branch April 19, 2022 14:18
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