From 204647b305b3baab9d3f0be96afce7f6e3d4a25f Mon Sep 17 00:00:00 2001 From: Moshe Jacobs Date: Fri, 17 Feb 2023 12:34:58 +0200 Subject: [PATCH] Removed test as per @graingert's comment https://github.com/spulec/freezegun/pull/421#discussion_r847137022 > 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 --- tests/test_asyncio.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index b6a8fd76..a6f690db 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -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()) - '''))