MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_load_default_certs_env

Method test_load_default_certs_env

Lib/test/test_ssl.py:1484–1490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1482
1483 @unittest.skipIf(sys.platform == "win32", "not-Windows specific")
1484 def test_load_default_certs_env(self):
1485 ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
1486 with os_helper.EnvironmentVarGuard() as env:
1487 env["SSL_CERT_DIR"] = CAPATH
1488 env["SSL_CERT_FILE"] = CERTFILE
1489 ctx.load_default_certs()
1490 self.assertEqual(ctx.cert_store_stats(), {"crl": 0, "x509": 1, "x509_ca": 0})
1491
1492 @unittest.skipUnless(sys.platform == "win32", "Windows specific")
1493 @unittest.skipIf(support.Py_DEBUG,

Callers

nothing calls this directly

Calls 3

load_default_certsMethod · 0.95
assertEqualMethod · 0.45
cert_store_statsMethod · 0.45

Tested by

no test coverage detected