tests/test_proxy_functional.py
def _patch_ssl_transport(monkeypatch):
    """Make ssl transport substitution to prevent ssl handshake."""
    def _make_ssl_transport_dummy(self, rawsock, protocol, sslcontext,
                                  waiter=None, **kwargs):
        return self._make_socket_transport(rawsock, protocol, waiter,
                                           extra=kwargs.get('extra'),
                                           server=kwargs.get('server'))

    monkeypatch.setattr(
        "asyncio.selector_events.BaseSelectorEventLoop._make_ssl_transport",
        _make_ssl_transport_dummy)
Make ssl transport substitution to prevent ssl handshake.
Make ssl transport substitution to prevent ssl handshake.
Make ssl transport substitution to prevent ssl handshake .
def _patch_ssl_transport(monkeypatch):
    def _make_ssl_transport_dummy(self, rawsock, protocol, sslcontext,
                                  waiter=None, **kwargs):
        return self._make_socket_transport(rawsock, protocol, waiter,
                                           extra=kwargs.get('extra'),
                                           server=kwargs.get('server'))
    monkeypatch.setattr(
        "asyncio.selector_events.BaseSelectorEventLoop._make_ssl_transport",
        _make_ssl_transport_dummy)
def _patch_ssl_transport ( monkeypatch ) : def _make_ssl_transport_dummy ( self , rawsock , protocol , sslcontext , waiter = None , ** kwargs ) : return self . _make_socket_transport ( rawsock , protocol , waiter , extra = kwargs . get ( 'extra' ) , server = kwargs . get ( 'server' ) ) monkeypatch . setattr ( "asyncio.selector_events.BaseSelectorEventLoop._make_ssl_transport" , _make_ssl_transport_dummy )
Make ssl transport substitution to prevent ssl handshake.
Make ssl transport substitution to prevent ssl handshake .
"""Make ssl transport substitution to prevent ssl handshake."""
monkeypatch