MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __init__

Method __init__

test/helpers_shared.py:253–265  ·  view source on GitHub ↗
(self, ca_certs)

Source from the content-addressed store, hash-verified

251
252class SystemCertsPatcher:
253 def __init__(self, ca_certs):
254 if (
255 ssl.OPENSSL_VERSION.lower().startswith("libressl")
256 and sys.platform == "darwin"
257 and not _ssl.IS_PYOPENSSL
258 ):
259 raise SkipTest(
260 "LibreSSL on OSX doesn't support setting CA certificates "
261 "using SSL_CERT_FILE environment variable."
262 )
263 self.original_certs = os.environ.get("SSL_CERT_FILE")
264 # Tell OpenSSL where CA certificates live.
265 os.environ["SSL_CERT_FILE"] = ca_certs
266
267 def disable(self):
268 if self.original_certs is None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected