mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20505: Add debug info to analyze sporaric failures of
test_timeout_rounding() on Windows XP buildbots.
This commit is contained in:
parent
69a2547cd5
commit
1c143b19c8
2 changed files with 10 additions and 1 deletions
|
@ -633,7 +633,13 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
else:
|
||||
logger.log(level, 'poll took %.3f seconds', t1-t0)
|
||||
else:
|
||||
t0 = self.time()
|
||||
event_list = self._selector.select(timeout)
|
||||
dt = self.time() - t0
|
||||
if not event_list and timeout and dt < timeout:
|
||||
print("asyncio: selector.select(%.3f ms) took %.3f ms"
|
||||
% (timeout*1e3, dt*1e3),
|
||||
file=sys.__stderr__, flush=True)
|
||||
self._process_events(event_list)
|
||||
|
||||
# Handle 'later' callbacks that are ready.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue