Skip to content

Commit 00b5f73

Browse files
authored
Update test_agent_loop.py
1 parent 82d65d1 commit 00b5f73

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎tests/agent/test_agent_loop.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,12 @@ def test_abort_unblocks_stalled_http_stream(self):
972972
class StallHandler(BaseHTTPRequestHandler):
973973
protocol_version = "HTTP/1.1"
974974

975+
def handle(self):
976+
with contextlib.suppress(
977+
BrokenPipeError, ConnectionAbortedError, ConnectionResetError
978+
):
979+
super().handle()
980+
975981
def do_POST(self):
976982
length = int(self.headers.get("Content-Length", 0))
977983
self.rfile.read(length or b"{}")

0 commit comments

Comments
 (0)