summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-22 02:43:48 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-22 02:43:48 (GMT)
commit32f0c7a67b6b2eb3808b47b462e837582d6710f8 (patch)
tree9a605afe9ef03636b4447e5241f0ad429b19cbaf /Lib
parentd5b200ce2be23c2bd90d01b87c8280b27f578a6a (diff)
downloadcpython-32f0c7a67b6b2eb3808b47b462e837582d6710f8.zip
cpython-32f0c7a67b6b2eb3808b47b462e837582d6710f8.tar.gz
cpython-32f0c7a67b6b2eb3808b47b462e837582d6710f8.tar.bz2
or VERIFY_CRL_CHECK_LEAF to verify_flags
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 2190d9f..4ebc4b0 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -1816,7 +1816,7 @@ else:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations(SIGNING_CA)
- context.verify_flags = ssl.VERIFY_DEFAULT
+ self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT)
# VERIFY_DEFAULT should pass
server = ThreadedEchoServer(context=server_context, chatty=True)
@@ -1827,7 +1827,7 @@ else:
self.assertTrue(cert, "Can't get peer certificate.")
# VERIFY_CRL_CHECK_LEAF without a loaded CRL file fails
- context.verify_flags = ssl.VERIFY_CRL_CHECK_LEAF
+ context.verify_flags |= ssl.VERIFY_CRL_CHECK_LEAF
server = ThreadedEchoServer(context=server_context, chatty=True)
with server: