mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650)
This commit is contained in:
parent
ef24b6c54d
commit
4531ec74c4
2 changed files with 3 additions and 5 deletions
|
@ -4074,9 +4074,7 @@ class ThreadedTests(unittest.TestCase):
|
|||
self.assertTrue(session)
|
||||
with self.assertRaises(TypeError) as e:
|
||||
s.session = object
|
||||
self.assertEqual(
|
||||
str(e.exception), 'Value is not an SSLSession.'
|
||||
)
|
||||
self.assertEqual(str(e.exception), 'Value is not a SSLSession.')
|
||||
|
||||
with client_context.wrap_socket(socket.socket(),
|
||||
server_hostname=hostname) as s:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue