Skip to content

Commit

Permalink
PYTHON-872 - Can't test loading system CA certs on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
behackett committed Apr 1, 2015
1 parent 330e6c8 commit 5dca437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_ssl.py
Expand Up @@ -454,14 +454,14 @@ def test_validation_with_system_ca_certs(self):
raise SkipTest("No hosts entry for 'server'. Cannot validate "
"hostname in the certificate")

if sys.platform == "win32":
raise SkipTest("Can't test system ca certs on Windows.")

if sys.version_info < (2, 7, 9):
raise SkipTest("SSLContext not available.")

if (sys.platform == "win32"
and sys.version_info[0] == 3 and sys.version_info < (3, 4)):
raise SkipTest(
"Python 3 can't load Windows system certs before 3.4")

# Tell OpenSSL where CA certificates live.
os.environ['SSL_CERT_FILE'] = CA_PEM
try:
with self.assertRaises(ConnectionFailure):
Expand Down

0 comments on commit 5dca437

Please sign in to comment.