Skip to content

Commit

Permalink
Changed asyncio to run() as per @graingert's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
micromoses committed Feb 17, 2023
1 parent 204647b commit c7926bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def test_time_freeze_coroutine():
async def frozen_coroutine():
assert datetime.date.today() == datetime.date(1970, 1, 1)

asyncio.new_event_loop().run_until_complete(frozen_coroutine())
asyncio.run(frozen_coroutine())

0 comments on commit c7926bd

Please sign in to comment.