feat(adapters): print statement removal (#53)

* adapters: print statement removal

Signed-off-by: Mateusz Susik <mateusz.susik@sigmoidal.io>

* test fix - read timeout added

Signed-off-by: Mateusz Susik <mateusz.susik@sigmoidal.io>
This commit is contained in:
Mateusz Susik 2018-05-06 14:17:21 +02:00 committed by SuHun Han
parent 2c85a4a976
commit 004f40ceb8
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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.