]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix potential flakiness in `test_run_until_complete_baseexception` (#100148)
authorFantix King <fantix.king@gmail.com>
Sat, 10 Dec 2022 10:04:22 +0000 (05:04 -0500)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 10:04:22 +0000 (15:34 +0530)
Lib/test/test_asyncio/test_base_events.py

index 532a7e5385aeb59da1e4fb6b4125bbb404b1bd5b..3b4026cb73869a7d766cb8c3cb1ba4cc9a84033e 100644 (file)
@@ -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)