From: Fantix King Date: Sat, 10 Dec 2022 10:04:22 +0000 (-0500) Subject: Fix potential flakiness in `test_run_until_complete_baseexception` (#100148) X-Git-Tag: v3.12.0a4~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50b08d5b5fd3e280b99b97a42d07089a64bf12c6;p=thirdparty%2FPython%2Fcpython.git Fix potential flakiness in `test_run_until_complete_baseexception` (#100148) --- diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 532a7e5385ae..3b4026cb7386 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -868,7 +868,7 @@ class BaseEventLoopTests(test_utils.TestCase): self.loop.stop() func.called = True func.called = False - self.loop.call_later(0.01, func) + self.loop.call_soon(self.loop.call_soon, func) self.loop.run_forever() self.assertTrue(func.called)