From c4367dfde88226fd7c40e77eb5c788a3b706ae11 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 7 Mar 2024 12:14:29 -0500 Subject: [PATCH] test_impl: skip StrEnum test below 3.11 Since StrEnum does not exist. Signed-off-by: William Woodruff --- test/test_impl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_impl.py b/test/test_impl.py index e06be95..b12c9d4 100644 --- a/test/test_impl.py +++ b/test/test_impl.py @@ -5,6 +5,7 @@ import gzip import json import struct +import sys from enum import IntEnum, StrEnum from io import BytesIO @@ -114,6 +115,7 @@ class X(IntEnum): assert json.loads(raw) == [1, 2, 9001] +@pytest.mark.skipif(sys.version_info < (3, 11), reason="StrEnum added in 3.11+") def test_dumps_strenum(): # StrEnum is a subclass of str, so this should work transparently. class X(StrEnum):