explicitly close the connection

Co-authored-by: François Freitag <mail@franek.fr>
This commit is contained in:
Justin Mathews 2021-06-10 11:42:36 -04:00 committed by GitHub
parent 134a8d8f54
commit 9b2a1e20e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ def test_limit_rate_bails_out_after_waiting_max_time(app):
class ConnectionResetHandler(http.server.BaseHTTPRequestHandler):
def do_HEAD(self):
raise requests.ConnectionError
self.connection.close()
def do_GET(self):
self.send_response(200, "OK")