Closed
Description
What is your issue?
It seems that some update in urllib3 causes our doctests to fail.
The reason seems to be that botocore uses an interesting construction to import deprecated urllib3 things:
try:
# pyopenssl will be removed in urllib3 2.0, we'll fall back to ssl_ at that point.
# This can be removed once our urllib3 floor is raised to >= 2.0.
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=DeprecationWarning)
# Always import the original SSLContext, even if it has been patched
from urllib3.contrib.pyopenssl import (
orig_util_SSLContext as SSLContext,
)
except ImportError:
from urllib3.util.ssl_ import
I assume that this fails because we use -Werror
which translates the warning into an error which then is not ignored...
Not sure if this is an issue with botocore or we have to catch this?