(self)
| 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, |
nothing calls this directly
no test coverage detected