File tree
Expand file treeCollapse file tree2 files changed
+8
-0
lines changed Expand file treeCollapse file tree2 files changed
+8
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 |
|
15 | 15 | from google.api_core import exceptions
|
16 | 16 | from google.api_core import retry
|
| 17 | +from google.auth import exceptions as auth_exceptions |
17 | 18 | import requests.exceptions
|
18 | 19 |
|
19 | 20 |
|
|
27 | 28 | exceptions.InternalServerError,
|
28 | 29 | exceptions.BadGateway,
|
29 | 30 | requests.exceptions.ConnectionError,
|
| 31 | +auth_exceptions.TransportError, |
30 | 32 | )
|
31 | 33 |
|
32 | 34 |
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -51,6 +51,12 @@ def test_w_unstructured_requests_connectionerror(self):
|
51 | 51 | exc = requests.exceptions.ConnectionError()
|
52 | 52 | self.assertTrue(self._call_fut(exc))
|
53 | 53 |
|
| 54 | +def test_w_auth_transporterror(self): |
| 55 | +from google.auth.exceptions import TransportError |
| 56 | + |
| 57 | +exc = TransportError("testing") |
| 58 | +self.assertTrue(self._call_fut(exc)) |
| 59 | + |
54 | 60 | def test_w_unstructured_too_many_requests(self):
|
55 | 61 | from google.api_core.exceptions import TooManyRequests
|
56 | 62 |
|
|
You can’t perform that action at this time.
0 commit comments