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
import eventlet still patches everything #240
Comments
Hello. Thanks for reproduction code, I've used it to bisect breaker commit. I couldn't get FakeSSLSocket error since Eventlet v0.15, but |
@temoto I used the the latest eventlet version. My concrete example was invoked via pytest but as far as I remember repl gives the same result. What is interesting that this all works fine with the |
also hitting this. i was surprised to find eventlet applying monkey-patches at import time (simply is this a "bug"? |
It is a bug. |
Sorry for leaving this issue open. |
In the docs you write:
I was working on a project which uses
eventlet
in some parts of the system and thus importseventlet
. Also I use HTTPretty to test some functionallity. Just a simpleimport eventlet
"greens" some standard libraries thefore breaking the httpretty functionallity. It does not always break. For example if I mock an 'http' request it works fine and breaks only on 'https'.Here is an open issue on httpretty gabrielfalcao/HTTPretty#254
I think that it's HTTPretty fault it breaks when eventlet greens the world but that auto-monkeypatching upon simple import seems to be quite unpredictable.
The text was updated successfully, but these errors were encountered: