Skip to content

Commit

Permalink
Merge remote-tracking branch 'jktjkt/fix-python-3.10-asyncio'
Browse files Browse the repository at this point in the history
  • Loading branch information
micromoses committed Feb 17, 2023
2 parents 3d5d60b + 6199e24 commit daefad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_time_freeze_coroutine():
async def frozen_coroutine():
assert datetime.date.today() == datetime.date(1970, 1, 1)

asyncio.get_event_loop().run_until_complete(frozen_coroutine())
asyncio.new_event_loop().run_until_complete(frozen_coroutine())


def test_time_freeze_async_def():
Expand All @@ -27,5 +27,5 @@ def test_time_freeze_async_def():
@freeze_time('1970-01-01')
async def frozen_coroutine():
assert datetime.date.today() == datetime.date(1970, 1, 1)
asyncio.get_event_loop().run_until_complete(frozen_coroutine())
asyncio.new_event_loop().run_until_complete(frozen_coroutine())
'''))

0 comments on commit daefad5

Please sign in to comment.