Skip to content

Commit

Permalink
🧪 (util) adjust StrEnum test for py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Jul 31, 2023
1 parent 27c1a9b commit 33b3325
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 33b3325

Please sign in to comment.