From 12493f1e80caf6dcfcf94ef05d4d5f4911b2371f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Fri, 12 Jul 2024 14:42:08 -0700 Subject: [PATCH] Conditionally import GatheringTaskGroup in test --- test/test_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_utils.py b/test/test_utils.py index 36f864d..d634109 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -16,7 +16,6 @@ import pytest from sdsstools.utils import ( - GatheringTaskGroup, Timer, cancel_task, get_temporary_file_path, @@ -24,6 +23,10 @@ ) +if sys.version_info >= (3, 11): + from sdsstools.utils import GatheringTaskGroup + + def test_timer(): with Timer() as timer: sleep(0.1)