summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-06 08:45:44 (GMT)
committerChristian Heimes <christian@python.org>2016-09-06 08:45:44 (GMT)
commitea9b2dc9e392d46eb4d698a731b271f429d19876 (patch)
tree3fc33c85f81968864819d7beb1f4345275de9f65 /Lib/test
parent3466bde1cc113750450ffed028cc6fc7c95faedd (diff)
downloadcpython-ea9b2dc9e392d46eb4d698a731b271f429d19876.zip
cpython-ea9b2dc9e392d46eb4d698a731b271f429d19876.tar.gz
cpython-ea9b2dc9e392d46eb4d698a731b271f429d19876.tar.bz2
Issue 27866: relax test case for set_cipher() and allow more cipher suites
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ssl.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index f19cf43..07fb102 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -837,11 +837,10 @@ class ContextTests(unittest.TestCase):
@unittest.skipIf(ssl.OPENSSL_VERSION_INFO < (1, 0, 2, 0, 0), 'OpenSSL too old')
def test_get_ciphers(self):
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
- ctx.set_ciphers('ECDHE+AESGCM:!ECDSA')
+ ctx.set_ciphers('AESGCM')
names = set(d['name'] for d in ctx.get_ciphers())
- self.assertEqual(names,
- {'ECDHE-RSA-AES256-GCM-SHA384',
- 'ECDHE-RSA-AES128-GCM-SHA256'})
+ self.assertIn('ECDHE-RSA-AES256-GCM-SHA384', names)
+ self.assertIn('ECDHE-RSA-AES128-GCM-SHA256', names)
@skip_if_broken_ubuntu_ssl
def test_options(self):