diff --git a/tornado/test/httpserver_test.py b/tornado/test/httpserver_test.py index db91d62daae03d4bb3419b8c34b443ccdc414fb4..1faf63fabfa53019058f1460a87865dcdad589fd 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