-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Simple test script fails with boto3 #474
Comments
The inner exception seems to be this one:
And the |
Looks like this HTTPretty issue is related: gabrielfalcao/HTTPretty#242 |
Confirmed that this is a combination of Python2 and pyopenssl urllib3 mucking: this code Just Works(tm) with Python3. |
The following solves the problem for me: try:
from botocore.vendored.requests.packages.urllib3 import connection
def fake_ssl_wrap_socket(sock, *args, **kwargs):
return sock
connection.ssl_wrap_socket = fake_ssl_wrap_socket
except ImportError:
pass
import boto3
import moto
... The key thing here is that |
I'm not able to recreate the failure using the latest version of moto and httpretty |
There you go :)
And it's |
I think the answer to this is going to be a resolution of gabrielfalcao/HTTPretty#242 |
This should no longer be an issue on |
Gives me this:
Any ideas? Is moto supposed to mock the
ec2
object or does it work by running an HTTP server and mocking responses only?Thanks.
The text was updated successfully, but these errors were encountered: