note below when used with ``curl_httpclient``.
:arg string client_cert: Filename for client SSL certificate, if any.
See note below when used with ``curl_httpclient``.
- :arg SSLContext ssl_options: `ssl.SSLContext` object for use in
+ :arg ssl.SSLContext ssl_options: `ssl.SSLContext` object for use in
``simple_httpclient`` (unsupported by ``curl_httpclient``).
Overrides ``validate_cert``, ``ca_certs``, ``client_key``,
and ``client_cert``.
.. versionadded:: 4.0
The ``body_producer`` and ``expect_100_continue`` arguments.
- .. verisonadded:: 4.2
+ .. versionadded:: 4.2
The ``ssl_options`` argument.
"""
# Note that some of these attributes go through property setters
self.assertEqual(resp.body, b"Hello world!")
def test_ssl_options_handshake_fail(self):
- with ExpectLog(gen_log, "SSL Error|Uncaught exception"):
+ with ExpectLog(gen_log, "SSL Error|Uncaught exception",
+ required=False):
resp = self.fetch(
"/hello", ssl_options=dict(cert_reqs=ssl.CERT_REQUIRED))
# On python 2.6, the server logs an exception a little after