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 4052dd2 commit 046e917Copy full SHA for 046e917
Lib/test/test_copy.py
@@ -439,6 +439,13 @@ def test_deepcopy_frozendict(self):
439
self.assertEqual(y.keys(), x.keys())
440
self.assertIsNot(x, y)
441
self.assertIsNot(x["foo"], y["foo"])
442
+ self.assertIs(y['foo'][0], y)
443
+
444
+ x = frozendict(foo=[])
445
+ x['foo'].append(x)
446
+ x = x['foo']
447
+ y = copy.deepcopy(x)
448
+ self.assertIs(y[0]['foo'], y)
449
450
@support.skip_emscripten_stack_overflow()
451
@support.skip_wasi_stack_overflow()
0 commit comments