We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a196f7 commit 5e2202fCopy full SHA for 5e2202f
tests/test_base_client.py
@@ -325,8 +325,8 @@ def inner(h: BaseHTTPRequestHandler):
325
content_length = int(h.headers.get('Content-Length', 0))
326
if content_length > 0:
327
requests.append(h.rfile.read(content_length))
328
-
329
- h.send_response(429)
+
+ h.send_response(429)
330
h.send_header('Retry-After', '1')
331
h.end_headers()
332
@@ -335,7 +335,7 @@ def inner(h: BaseHTTPRequestHandler):
335
336
with http_fixture_server(inner) as host:
337
client = _BaseClient()
338
339
# Should raise error immediately without retry.
340
with pytest.raises(DatabricksError):
341
client.do('POST', f'{host}/foo', data=stream)
0 commit comments