You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freeze_time function doesn't freeze time when using asyncio with uvloop event loop.
uvloop's _time() uses uv_now() which is defined inside libuvhere. From what I can see, you don't properly handle such a scenario and don't mock the time there.
Description
freeze_time
function doesn't freeze time when usingasyncio
withuvloop
event loop.uvloop
's_time()
usesuv_now()
which is defined insidelibuv
here. From what I can see, you don't properly handle such a scenario and don't mock the time there.Attaching simple script to reproduce:
Output:
Commenting the line with
set_event_loop_policy
yields the following result , which is the expected behaviour:The text was updated successfully, but these errors were encountered: