-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Closed
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dir
Description
This unit test logs to an HTTP backend. If for some reason the request fails, then the self.handled.wait()
will bock indefinitely. In practice that means until the test runner times out, which can be after over an hour.
We should add a timeout in self.handled.wait()
and fail the test more quickly if the timeout expires.
cpython/Lib/test/test_logging.py
Lines 2189 to 2194 in 4220514
for method in ('GET', 'POST'): | |
self.h_hdlr.method = method | |
self.handled.clear() | |
msg = "sp\xe4m" | |
logger.error(msg) | |
self.handled.wait() |
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dir