mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fix (hopefully) the remaining test_ssl buildbot failures
This commit is contained in:
parent
467f28de03
commit
65ec8ae47f
2 changed files with 6 additions and 2 deletions
|
@ -142,7 +142,7 @@ class BasicSocketTests(unittest.TestCase):
|
|||
# Error checking can happen at instantiation or when connecting
|
||||
with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"):
|
||||
s = ssl.wrap_socket(socket.socket(socket.AF_INET),
|
||||
cert_reqs=ssl.CERT_NONE, ciphers="^$:,;?*'dorothyx")
|
||||
cert_reqs=ssl.CERT_NONE, ciphers="xyzzy")
|
||||
s.connect(remote)
|
||||
|
||||
@support.cpython_only
|
||||
|
@ -186,7 +186,7 @@ class ContextTests(unittest.TestCase):
|
|||
ctx.set_ciphers("ALL")
|
||||
ctx.set_ciphers("DEFAULT")
|
||||
with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"):
|
||||
ctx.set_ciphers("^$:,;?*'dorothyx")
|
||||
ctx.set_ciphers("xyzzy")
|
||||
|
||||
def test_verify(self):
|
||||
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue