From: Sam Gross Date: Mon, 8 Apr 2024 14:46:56 +0000 (-0400) Subject: gh-117552: Add timeout in HTTPHandlerTest (#117553) X-Git-Tag: v3.13.0a6~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59864edd572b5c0cc3be58087a9ea3a700226146;p=thirdparty%2FPython%2Fcpython.git gh-117552: Add timeout in HTTPHandlerTest (#117553) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 7b5bc6b6a741..c3c4de06fa0f 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -2191,7 +2191,8 @@ class HTTPHandlerTest(BaseTest): self.handled.clear() msg = "sp\xe4m" logger.error(msg) - self.handled.wait() + handled = self.handled.wait(support.SHORT_TIMEOUT) + self.assertTrue(handled, "HTTP request timed out") self.assertEqual(self.log_data.path, '/frob') self.assertEqual(self.command, method) if method == 'GET':