diff --git a/test/test_http_proxy.py b/test/test_http_proxy.py index e5b41ce88..6e56a18df 100644 --- a/test/test_http_proxy.py +++ b/test/test_http_proxy.py @@ -130,6 +130,9 @@ def _wrap_ssl_read(self, *args, **kwargs): # Websockets does not treat 0 as an EOF, rather only b'' return b'' return res + + def getsockname(self): + return self.socket.getsockname() else: SSLTransport = None