summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
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)
commitc3d9c5ca0a74f0eedc228640977d6be1c2ddc176 (patch)
tree5252a79d2496e5b45e47afc18588fff321db42bf /Lib/test/test_ssl.py
parent990fcaac3c428569697f62a80fd95ab4d4b93151 (diff)
downloadcpython-c3d9c5ca0a74f0eedc228640977d6be1c2ddc176.zip
cpython-c3d9c5ca0a74f0eedc228640977d6be1c2ddc176.tar.gz
cpython-c3d9c5ca0a74f0eedc228640977d6be1c2ddc176.tar.bz2
adjust test_crl_check for trusted first being default
Diffstat (limited to 'Lib/test/test_ssl.py')
-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 6353e23..779b622 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2007,7 +2007,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)