Skip to content

Commit c9ba186

Browse files
authored
bpo-26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test. (GH-374)
1 parent b4f0e98 commit c9ba186

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_ssl.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ def test_options(self):
777777
ctx.options = (ctx.options & ~ssl.OP_NO_TLSv1)
778778
self.assertEqual(default, ctx.options)
779779
ctx.options = 0
780-
self.assertEqual(0, ctx.options)
780+
# Ubuntu has OP_NO_SSLv3 forced on by default
781+
self.assertEqual(0, ctx.options & ~ssl.OP_NO_SSLv3)
781782
else:
782783
with self.assertRaises(ValueError):
783784
ctx.options = 0

0 commit comments

Comments
 (0)