We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb714a commit d7972ffCopy full SHA for d7972ff
1 file changed
Lib/test/pickletester.py
@@ -3100,6 +3100,15 @@ def test_float_format(self):
3100
# make sure that floats are formatted locale independent with proto 0
3101
self.assertEqual(self.dumps(1.2, 0)[0:3], b'F1.')
3102
3103
+ def test_frozendict(self):
3104
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
3105
+ for fd in (
3106
+ frozendict(),
3107
+ frozendict(x=1, y=2),
3108
+ ):
3109
+ p = self.dumps(fd, proto)
3110
+ self.assert_is_copy(fd, self.loads(p))
3111
+
3112
def test_reduce(self):
3113
for proto in protocols:
3114
with self.subTest(proto=proto):
0 commit comments