summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-03-05 04:18:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-03-05 04:18:48 (GMT)
commitd86699fe04228f6be216355fbafb765d6c3131e7 (patch)
tree8a011b1d10bbd3b285599742f910b6c9d7fa264b /Lib
parent72ef9610593bfee5f504f9070482a265ac5eac69 (diff)
downloadcpython-d86699fe04228f6be216355fbafb765d6c3131e7.zip
cpython-d86699fe04228f6be216355fbafb765d6c3131e7.tar.gz
cpython-d86699fe04228f6be216355fbafb765d6c3131e7.tar.bz2
adjust test_crl_check for trusted first being default
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index b2d57cf..97e5654 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2065,7 +2065,8 @@ else:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations(SIGNING_CA)
- self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT)
+ tf = getattr(ssl, "VERIFY_X509_TRUSTED_FIRST", 0)
+ self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT | tf)
# VERIFY_DEFAULT should pass
server = ThreadedEchoServer(context=server_context, chatty=True)