Skip to content

Commit

Permalink
Skip GatheringTaskGroup test for <3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 12, 2024
1 parent 5489016 commit 0097a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import annotations

import asyncio
import sys
import warnings
from time import sleep

Expand Down Expand Up @@ -97,6 +98,7 @@ async def test_cancel_task_None():
await cancel_task(task)


@pytest.mark.skipif(sys.version_info < (3, 11), reason="requires python3.11 or higher")
async def test_gathering_task_group():
async def _task(i):
await asyncio.sleep(0.1)
Expand All @@ -109,6 +111,7 @@ async def _task(i):
assert group.results() == list(range(10))


@pytest.mark.skipif(sys.version_info < (3, 11), reason="requires python3.11 or higher")
async def test_gathering_task_group_results_fails():
async def _task(i):
await asyncio.sleep(0.1)
Expand Down

0 comments on commit 0097a14

Please sign in to comment.