projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990fcaa
)
adjust test_crl_check for trusted first being default
author
Benjamin Peterson
<benjamin@python.org>
Thu, 5 Mar 2015 04:18:48 +0000
(23:18 -0500)
committer
Benjamin Peterson
<benjamin@python.org>
Thu, 5 Mar 2015 04:18:48 +0000
(23:18 -0500)
Lib/test/test_ssl.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_ssl.py
b/Lib/test/test_ssl.py
index 6353e230d605e21ac0755b9578a28152b42f0e1e..779b622d840e5611ab57cf57db791bbb6d6c8d07 100644
(file)
--- 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)