8000 Fix potential flakiness in `test_run_until_complete_baseexception` (#… · python/cpython@50b08d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50b08d5

Browse files
authored
Fix potential flakiness in test_run_until_complete_baseexception (#100148)
1 parent 228c92e commit 50b08d5

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
@@ -868,7 +868,7 @@ def func():
868868
self.loop.stop()
869869
func.called = True
870870
func.called = False
871-
self.loop.call_later(0.01, func)
871+
self.loop.call_soon(self.loop.call_soon, func)
872872
self.loop.run_forever()
873873
self.assertTrue(func.called)
874874

0 commit comments

Comments
 (0)
0