From 96c2741b3c41133cb06a45d82b10a9c3c18cdb55 Mon Sep 17 00:00:00 2001 From: Marcin Sulikowski Date: Wed, 14 Sep 2022 18:00:22 +0200 Subject: [PATCH] Clean up asyncio tests We finish the cleanup of `test_asyncio.py` done in c60dd14b05f09c482d4 and in 204647b305 by removing remnants of support of Pythons with no `asyncio` module because all Python interpreters supported by freezegun already support `asyncio`. --- tests/test_asyncio.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index 6f6a1a3a..ad4ae10d 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -1,15 +1,10 @@ import asyncio import datetime -from textwrap import dedent -from unittest import SkipTest from freezegun import freeze_time -def test_time_freeze_coroutine(): - if not asyncio: - raise SkipTest('asyncio required') - +def test_datetime_in_coroutine(): @freeze_time('1970-01-01') async def frozen_coroutine(): assert datetime.date.today() == datetime.date(1970, 1, 1)