From 13bdb458de3a47626914789caaa3bf834236e167 Mon Sep 17 00:00:00 2001 From: Actionless Loveless Date: Sun, 30 Jun 2024 22:04:38 +0200 Subject: [PATCH] test(event): don't attempt to import exceptiongroup if running python 3.11+ --- tests/test_event_exception.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_event_exception.py b/tests/test_event_exception.py index f471c9a..d1dd899 100644 --- a/tests/test_event_exception.py +++ b/tests/test_event_exception.py @@ -1,9 +1,11 @@ from __future__ import annotations +from sys import version_info from typing import Callable import pytest -from exceptiongroup import ExceptionGroup +if version_info < (3, 11): + from exceptiongroup import ExceptionGroup from generic.event import Event, Manager