From 0b8c7d8a7152f9e462720a9c92c0486507d5e661 Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Wed, 1 Mar 2017 14:40:41 +0800 Subject: [PATCH] backport bpo-26867 --- Lib/test/test_ssl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index a17d6131a6eb68..a1258c65a576b5 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -777,7 +777,8 @@ def test_options(self): ctx.options = (ctx.options & ~ssl.OP_NO_TLSv1) self.assertEqual(default, 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