Also import get_subj_alt_name
MODIFY
test/contrib/test_pyopenssl.py
test/contrib/test_pyopenssl.py
@@ -6,7 +6,11 @@ import mock
import pytest
try:
- from urllib3.contrib.pyopenssl import _dnsname_to_stdlib
+ from urllib3.contrib.pyopenssl import (
+ _dnsname_to_stdlib, get_subj_alt_name
+ )
+ from cryptography import x509
+ from OpenSSL.crypto import FILETYPE_PEM, load_certificate
except ImportError:
pass

Also import get_subj_alt_name