(self)
| 3856 | self.assertEqual(cm.exception.errno, errno.ENOTCONN) |
| 3857 | |
| 3858 | def test_do_handshake_enotconn(self): |
| 3859 | context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) |
| 3860 | context.check_hostname = False |
| 3861 | with context.wrap_socket(socket.socket()) as sock: |
| 3862 | with self.assertRaises(OSError) as cm: |
| 3863 | sock.do_handshake() |
| 3864 | self.assertEqual(cm.exception.errno, errno.ENOTCONN) |
| 3865 | |
| 3866 | def test_no_shared_ciphers(self): |
| 3867 | client_context, server_context, hostname = testing_context() |
nothing calls this directly
no test coverage detected