Skip to content

Commit

Permalink
Clean up asyncio tests
Browse files Browse the repository at this point in the history
We finish the cleanup of `test_asyncio.py` done in c60dd14
and in 204647b by removing remnants of support of Pythons with no
`asyncio` module because all Python interpreters supported by freezegun
already support `asyncio`.
  • Loading branch information
marcinsulikowski committed Feb 20, 2023
1 parent 28d1a36 commit 96c2741
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 96c2741

Please sign in to comment.