diff --git a/googletrans/adapters.py b/googletrans/adapters.py index 6eb21ce..f04dc8e 100644 --- a/googletrans/adapters.py +++ b/googletrans/adapters.py @@ -13,5 +13,4 @@ class TimeoutAdapter(HTTPAdapter): def send(self, *args, **kwargs): kwargs['timeout'] = self.timeout - print(self.timeout) return super(TimeoutAdapter, self).send(*args, **kwargs) diff --git a/tests/test_client.py b/tests/test_client.py index 07ab85f..4e578eb 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -119,7 +119,7 @@ def test_dest_not_in_supported_languages(translator): def test_connection_timeout(): # Requests library specifies two timeouts: connection and read - with raises(ConnectionError): + with raises((ConnectionError, ReadTimeout)): """If a number is passed to timeout parameter, both connection and read timeouts will be set to it. Firstly, the connection timeout will fail.