[Python-checkins] cpython (3.5): Issue #26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.

larry.hastings python-checkins at python.org
Sun Jun 26 23:02:10 EDT 2016


https://hg.python.org/cpython/rev/4d04aca4afb0
changeset: 102189:4d04aca4afb0
branch: 3.5
parent: 101966:3428e51f47aa
user: Matthias Klose <doko at ubuntu.com>
date: Sun Jun 12 23:40:00 2016 -0700
summary:
 Issue #26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.
files:
 Lib/test/test_ssl.py | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -821,7 +821,8 @@
 self.assertEqual(ssl.OP_ALL | ssl.OP_NO_TLSv1 | ssl.OP_NO_SSLv3,
 ctx.options)
 ctx.options = 0
- self.assertEqual(0, ctx.options)
+ # Ubuntu has OP_NO_SSLv3 forced on by default
+ self.assertEqual(0, ctx.options & ~ssl.OP_NO_SSLv3)
 else:
 with self.assertRaises(ValueError):
 ctx.options = 0
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /