Skip to content

Commit b878b76

Browse files
committed
Bump dependencies
1 parent f653fbb commit b878b76

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

requirements.dev.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r requirements.txt
2-
pytest==4.6.5
3-
pytest-cov==2.7.1
4-
pytest-voluptuous==1.1.0
5-
httpretty==0.9.6
6-
flake8==3.8.4
2+
pytest==7.4.3
3+
pytest-cov==4.1.0
4+
pytest-voluptuous==1.2.0
5+
httpretty==1.1.4
6+
flake8==6.1.0

tests/test_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,15 @@ def test_retry_network_failure(self):
352352
with pytest.raises(HTTPRetryError) as exc:
353353
print(spec.data()) # does make a http call
354354

355+
# raise Exception(exc.value)
355356
assert str(exc.value).startswith(
356357
"""Last attempt was an exception <class 'requests.exceptions.ConnectionError'> \""""
357358
"""HTTPConnectionPool(host='invalid-domain.deepomatic.com', port=80): Max retries exceeded with url: """
358-
"""/v0.7/recognition/public/imagenet-inception-v3/ (Caused by NewConnectionError"""
359-
"""('<urllib3.connection.HTTPConnection object at"""
359+
"""/v0.7/recognition/public/imagenet-inception-v3/ (Caused by NameResolutionError"""
360+
"""("<urllib3.connection.HTTPConnection object at"""
360361
)
361362
assert str(exc.value).endswith("""
362-
>: Failed to establish a new connection: [Errno -2] Name or service not known',))"
363+
>: Failed to resolve 'invalid-domain.deepomatic.com' ([Errno -2] Name or service not known)"))"
363364
""".strip())
364365

365366
def test_retry_bad_status_code(self):

0 commit comments

Comments
 (0)