File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
-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
Original file line number Diff line number Diff line change @@ -352,14 +352,15 @@ def test_retry_network_failure(self):
352
352
with pytest .raises (HTTPRetryError ) as exc :
353
353
print (spec .data ()) # does make a http call
354
354
355
+ # raise Exception(exc.value)
355
356
assert str (exc .value ).startswith (
356
357
"""Last attempt was an exception <class 'requests.exceptions.ConnectionError'> \" """
357
358
"""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"""
360
361
)
361
362
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)" ))"
363
364
""" .strip ())
364
365
365
366
def test_retry_bad_status_code (self ):
You can’t perform that action at this time.
0 commit comments