Skip to content

Commit 79c577b

Browse files
committed
gh-135056: Fix socket closing in test_extra_response_headers_arg
1 parent ed0b0b3 commit 79c577b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_httpservers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,7 @@ def test_extra_response_headers_arg(self, _, mock_make_server):
15581558
# the spied call args, then calling _make_server with them.
15591559
args, kwargs = mock_make_server.call_args
15601560
httpd = server._make_server(*args, **kwargs)
1561+
self.addCleanup(httpd.server_close)
15611562

15621563
# Ensure the RequestHandler class is passed the correct response
15631564
# headers

0 commit comments

Comments
 (0)