From 9b2a1e20e23dc9830540bae6c707d8349de4e922 Mon Sep 17 00:00:00 2001 From: Justin Mathews Date: Thu, 10 Jun 2021 11:42:36 -0400 Subject: [PATCH] explicitly close the connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: François Freitag --- tests/test_build_linkcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index 1fea96d6c..5a146b831 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -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")