Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brénainn Woodsend committed Sep 30, 2023
1 parent 5cdbac7 commit a7a308c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ class RequestHandler(BaseHTTPRequestHandler):
finally:
httpd.shutdown()


def slow_connection(payload):
"""Mimic a slow (100kB/s) download rate."""

def upstream_get(self):
self.send_response(HTTPStatus.OK)
self.send_header("Content-Length", len(payload))
Expand Down Expand Up @@ -215,7 +217,6 @@ def respond_compressed(self):
assert response.read() == b"hello world"



def test_concurrent(tmp_path):
url = "http://localhost:9989/foo.bar"
self = CachedMirror(
Expand Down

0 comments on commit a7a308c

Please sign in to comment.