Skip to content

Commit

Permalink
Removed test as per @graingert's comment
Browse files Browse the repository at this point in the history
#421 (comment)
> this test can just be removed because it's the same as the above test_time_freeze_coroutine - except the syntax was hidden from 3.4 or lower
  • Loading branch information
micromoses committed Feb 17, 2023
1 parent daefad5 commit 204647b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,3 @@ async def frozen_coroutine():
assert datetime.date.today() == datetime.date(1970, 1, 1)

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


def test_time_freeze_async_def():
try:
exec('async def foo(): pass')
except SyntaxError:
raise SkipTest('async def not supported')
else:
exec(dedent('''
@freeze_time('1970-01-01')
async def frozen_coroutine():
assert datetime.date.today() == datetime.date(1970, 1, 1)
asyncio.new_event_loop().run_until_complete(frozen_coroutine())
'''))

0 comments on commit 204647b

Please sign in to comment.