Skip to content

Commit 95b8544

Browse files
committed
gh-139122: Test UUID state restoration with frozendict
1 parent f42e84a commit 95b8544

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/test_uuid.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_setstate_mapping(self):
503503
for safety in self.uuid.SafeUUID
504504
)
505505
with support.swap_item(sys.modules, 'uuid', self.uuid):
506-
for mapping in (dict, UserDict, MappingProxyType):
506+
for mapping in (dict, frozendict, UserDict, MappingProxyType):
507507
for safety_state, expected_safety in safety_states:
508508
with self.subTest(mapping=mapping, state=safety_state):
509509
u = self.uuid.UUID(int=0, is_safe=self.uuid.SafeUUID.safe)
@@ -514,7 +514,7 @@ def test_setstate_mapping(self):
514514

515515
def test_setstate_missing_int(self):
516516
# A missing required key must retain the mapping's KeyError and key.
517-
for mapping in (dict, UserDict, MappingProxyType):
517+
for mapping in (dict, frozendict, UserDict, MappingProxyType):
518518
with self.subTest(mapping=mapping):
519519
u = self.uuid.UUID(int=1)
520520
with self.assertRaises(KeyError) as cm:

0 commit comments

Comments
 (0)