diff --git a/test/test_http_proxy.py b/test/test_http_proxy.py index e5b41ce883..6e56a18df3 100644 --- a/test/test_http_proxy.py +++ b/test/test_http_proxy.py @@ -130,6 +130,9 @@ if urllib3: # 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