Skip to content

Commit

Permalink
Monkeypatch ssl transport without server
Browse files Browse the repository at this point in the history
  • Loading branch information
kserhii committed Dec 8, 2016
1 parent 1dc8631 commit 1a1b5d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_proxy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,7 @@ 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'))
return self._make_socket_transport(rawsock, protocol, waiter)

monkeypatch.setattr(
"asyncio.selector_events.BaseSelectorEventLoop._make_ssl_transport",
Expand Down

0 comments on commit 1a1b5d8

Please sign in to comment.