We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330e6c8 commit 5dca437Copy full SHA for 5dca437
test/test_ssl.py
@@ -454,14 +454,14 @@ def test_validation_with_system_ca_certs(self):
454
raise SkipTest("No hosts entry for 'server'. Cannot validate "
455
"hostname in the certificate")
456
457
+ if sys.platform == "win32":
458
+ raise SkipTest("Can't test system ca certs on Windows.")
459
+
460
if sys.version_info < (2, 7, 9):
461
raise SkipTest("SSLContext not available.")
462
- if (sys.platform == "win32"
- and sys.version_info[0] == 3 and sys.version_info < (3, 4)):
- raise SkipTest(
463
- "Python 3 can't load Windows system certs before 3.4")
464
+ # Tell OpenSSL where CA certificates live.
465
os.environ['SSL_CERT_FILE'] = CA_PEM
466
try:
467
with self.assertRaises(ConnectionFailure):
0 commit comments