From 0097a14ee3ebdca7a656c25637abf34985c9885c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Fri, 12 Jul 2024 14:37:57 -0700 Subject: [PATCH] Skip GatheringTaskGroup test for <3.11 --- test/test_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_utils.py b/test/test_utils.py index 0c61212..36f864d 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -9,6 +9,7 @@ from __future__ import annotations import asyncio +import sys import warnings from time import sleep @@ -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) @@ -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)