Skip to content

Commit

Permalink
Make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudhartert-db committed Nov 13, 2024
1 parent 4a196f7 commit 5e2202f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ def inner(h: BaseHTTPRequestHandler):
content_length = int(h.headers.get('Content-Length', 0))
if content_length > 0:
requests.append(h.rfile.read(content_length))
h.send_response(429)

h.send_response(429)
h.send_header('Retry-After', '1')
h.end_headers()

Expand All @@ -335,7 +335,7 @@ def inner(h: BaseHTTPRequestHandler):

with http_fixture_server(inner) as host:
client = _BaseClient()

# Should raise error immediately without retry.
with pytest.raises(DatabricksError):
client.do('POST', f'{host}/foo', data=stream)
Expand Down

0 comments on commit 5e2202f

Please sign in to comment.