Skip to content

Commit e32d214

Browse files
authored
PYTHON-2810 Disable SSL_CERT_FILE tests on Windows with PyOpenSSL (#757)
1 parent eec9474 commit e32d214

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,9 @@ def __init__(self, ca_certs):
10751075
raise SkipTest(
10761076
"LibreSSL on OSX doesn't support setting CA certificates "
10771077
"using SSL_CERT_FILE environment variable.")
1078+
if sys.platform == 'win32' and _ssl.IS_PYOPENSSL:
1079+
raise SkipTest(
1080+
"SSL_CERT_FILE does not work on Windows with PyOpenSSL")
10781081
self.original_certs = os.environ.get('SSL_CERT_FILE')
10791082
# Tell OpenSSL where CA certificates live.
10801083
os.environ['SSL_CERT_FILE'] = ca_certs

0 commit comments

Comments
 (0)