From 7dfe8b597f2d179334d7b528f61e9449ac131273 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 10 Aug 2023 21:41:40 -0400 Subject: [PATCH] httpserver_test: Add ExpectLog to fix CI The github security advisory feature lets you make private PRs but it apparently doesn't support CI so this log failure wasn't caught until after the PR was merged. --- tornado/test/httpserver_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tornado/test/httpserver_test.py b/tornado/test/httpserver_test.py index db91d62da..1faf63fab 100644 --- a/tornado/test/httpserver_test.py +++ b/tornado/test/httpserver_test.py @@ -575,9 +575,10 @@ Transfer-Encoding: chunked b"\n", b"\r\n" ) ) - start_line, headers, response = self.io_loop.run_sync( - lambda: read_stream_body(self.stream) - ) + with ExpectLog(gen_log, ".*invalid chunk size", level=logging.INFO): + start_line, headers, response = self.io_loop.run_sync( + lambda: read_stream_body(self.stream) + ) self.assertEqual(400, start_line.code) @gen_test -- 2.47.2