From 5fb1568b6e69866e4b0b7df0fd99a62bf0888b98 Mon Sep 17 00:00:00 2001 From: Bob Strecansky Date: Sun, 6 Aug 2017 22:26:17 -0400 Subject: [PATCH] [#4535] - Unwrap max retries exceeded errors --- acme/acme/client_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme/acme/client_test.py b/acme/acme/client_test.py index 1c6b4a77c..172e94d74 100644 --- a/acme/acme/client_test.py +++ b/acme/acme/client_test.py @@ -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))