Mailing List Archive

gh-117552: Add timeout in HTTPHandlerTest (#117553)
https://github.com/python/cpython/commit/59864edd572b5c0cc3be58087a9ea3a700226146
commit: 59864edd572b5c0cc3be58087a9ea3a700226146
branch: main
author: Sam Gross <colesbury@gmail.com>
committer: colesbury <colesbury@gmail.com>
date: 2024-04-08T10:46:56-04:00
summary:

gh-117552: Add timeout in HTTPHandlerTest (#117553)

files:
M Lib/test/test_logging.py

diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 7b5bc6b6a74180..c3c4de06fa0f09 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2191,7 +2191,8 @@ def test_output(self):
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':

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com