From 33b33259e74a100fccd0b4daef801dbdc0a3759d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=B6rpel?= Date: Mon, 31 Jul 2023 13:59:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20(util)=20adjust=20StrEnum=20test?= =?UTF-8?q?=20for=20py3.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_util.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 0bc105b6..a0eaefe6 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -29,13 +29,13 @@ def test_util_str_enum(): if sys.version_info >= (3, 11): assert isinstance(enum, EnumType) - # https://gist.github.com/simonwoerpel/bdb9959de75e550349961677549624fb - enum = StrEnum("Foo", ["name", "name2"]) - assert "name" in enum.__dict__ - dump = cloudpickle.dumps(enum) - assert isinstance(dump, bytes) - enum2 = cloudpickle.loads(dump) - assert enum2 == enum + # https://gist.github.com/simonwoerpel/bdb9959de75e550349961677549624fb + enum = StrEnum("Foo", ["name", "name2"]) + assert "name" in enum.__dict__ + dump = cloudpickle.dumps(enum) + assert isinstance(dump, bytes) + enum2 = cloudpickle.loads(dump) + assert enum2 == enum def test_util_unknown_filters():