Skip to content

Commit

Permalink
Conditionally import GatheringTaskGroup in test
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 12, 2024
1 parent 64af532 commit 12493f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
import pytest

from sdsstools.utils import (
GatheringTaskGroup,
Timer,
cancel_task,
get_temporary_file_path,
run_in_executor,
)


if sys.version_info >= (3, 11):
from sdsstools.utils import GatheringTaskGroup


def test_timer():
with Timer() as timer:
sleep(0.1)
Expand Down

0 comments on commit 12493f1

Please sign in to comment.