Commit 47a5382
committed
Address review nits from @rambleraptor
- Drop the misleading 'when none are set, the default requests behavior is
preserved' sentence in the docs (partial overrides don't reset other knobs
to undefined behavior).
- Initialize retries and backoff_factor to 0 instead of None so the Retry()
call no longer needs conditional defaults inline. A Retry(total=0) is a
no-op and is functionally equivalent to no Retry at all.
- Extract the loopback HTTP server setup from the retry test into a
_local_rest_server_503_then_200 context manager; the test body now shows
intent (set retries=3, list, verify 4 calls) without the handler scaffold.
Signed-off-by: rahulsmahadev <rahul.mahadev@databricks.com>1 parent afb1f51 commit 47a5382
3 files changed
Lines changed: 34 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
457 | 459 | | |
458 | 460 | | |
459 | 461 | | |
| |||
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
465 | | - | |
| 467 | + | |
466 | 468 | | |
467 | 469 | | |
468 | 470 | | |
| |||
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
480 | 482 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
| 483 | + | |
| 484 | + | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
2065 | 2066 | | |
2066 | 2067 | | |
2067 | 2068 | | |
2068 | | - | |
| 2069 | + | |
2069 | 2070 | | |
2070 | 2071 | | |
2071 | 2072 | | |
2072 | | - | |
2073 | | - | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
2074 | 2078 | | |
2075 | | - | |
2076 | | - | |
| 2079 | + | |
2077 | 2080 | | |
2078 | 2081 | | |
2079 | 2082 | | |
2080 | 2083 | | |
2081 | 2084 | | |
2082 | | - | |
| 2085 | + | |
2083 | 2086 | | |
2084 | 2087 | | |
2085 | 2088 | | |
| |||
2090 | 2093 | | |
2091 | 2094 | | |
2092 | 2095 | | |
2093 | | - | |
| 2096 | + | |
2094 | 2097 | | |
2095 | 2098 | | |
2096 | 2099 | | |
| |||
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
2112 | | - | |
| 2115 | + | |
2113 | 2116 | | |
2114 | 2117 | | |
2115 | 2118 | | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2116 | 2128 | | |
2117 | 2129 | | |
2118 | 2130 | | |
2119 | | - | |
| 2131 | + | |
2120 | 2132 | | |
2121 | 2133 | | |
2122 | 2134 | | |
2123 | 2135 | | |
2124 | 2136 | | |
2125 | 2137 | | |
2126 | | - | |
2127 | | - | |
2128 | | - | |
2129 | | - | |
| 2138 | + | |
2130 | 2139 | | |
2131 | 2140 | | |
2132 | 2141 | | |
| |||
0 commit comments