Skip to content

Commit e4ea1cb

Browse files
committed
gh-130736: Fix asyncio test_shutdown_default_executor_timeout()
Use a ridiculous small timeout (1 nanosecond) instead of 10 ms.
1 parent 04091c0 commit e4ea1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def shutdown(self, wait=True, *, cancel_futures=False):
246246
with self.assertWarnsRegex(RuntimeWarning,
247247
"The executor did not finishing joining"):
248248
self.loop.run_until_complete(
249-
self.loop.shutdown_default_executor(timeout=0.01))
249+
self.loop.shutdown_default_executor(timeout=1e-9))
250250

251251
def test_call_soon(self):
252252
def cb():

0 commit comments

Comments
 (0)