mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
[#4535] - Unwrap max retries exceeded errors
This commit is contained in:
parent
57e664077f
commit
5fb1568b6e
1 changed files with 3 additions and 3 deletions
|
|
@ -628,7 +628,7 @@ class ClientNetworkTest(unittest.TestCase):
|
|||
# pylint: disable=protected-access
|
||||
self.net._send_request('GET', "http://localhost:19123/nonexistent.txt")
|
||||
|
||||
# Python 2
|
||||
# Python Exceptions
|
||||
except ValueError as y:
|
||||
if "linux" in sys.platform:
|
||||
self.assertEqual("Requesting localhost/nonexistent: "
|
||||
|
|
@ -637,11 +637,11 @@ class ClientNetworkTest(unittest.TestCase):
|
|||
self.assertEqual("Requesting localhost/nonexistent: "
|
||||
"Connection refused", str(y))
|
||||
|
||||
# Python 3
|
||||
# Requests Exceptions
|
||||
except requests.exceptions.ConnectionError as z: #pragma: no cover
|
||||
if "linux" in sys.platform:
|
||||
self.assertEqual("('Connection aborted.', "
|
||||
"error('Connection refused'))", str(z))
|
||||
"error(111, 'Connection refused'))", str(z))
|
||||
else: #pragma: no cover
|
||||
self.assertEqual("('Connection aborted.', "
|
||||
"error('Connection refused'))", str(z))
|
||||
|
|
|
|||
Loading…
Reference in a new issue