Skip to content

Commit

Permalink
tests: linkcheck: InfiniteRedirectOnHeadHandler: close server-side co…
Browse files Browse the repository at this point in the history
…nnection after response body is written, since we do not anticipate the client will read it

Ref: #11340 (comment)
  • Loading branch information
jayaddison committed May 8, 2023
1 parent 0f07720 commit a4667b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_build_linkcheck.py
Expand Up @@ -536,6 +536,7 @@ def do_GET(self):
self.send_header("Content-Length", str(len(content)))
self.end_headers()
self.wfile.write(content)
self.close_connection = True # we don't expect the client to read this response body


@pytest.mark.sphinx('linkcheck', testroot='linkcheck-localserver', freshenv=True)
Expand Down

0 comments on commit a4667b5

Please sign in to comment.