Skip to content

Commit 046e917

Browse files
committed
Add more tests
1 parent 4052dd2 commit 046e917

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_copy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,13 @@ def test_deepcopy_frozendict(self):
439439
self.assertEqual(y.keys(), x.keys())
440440
self.assertIsNot(x, y)
441441
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)
442449

443450
@support.skip_emscripten_stack_overflow()
444451
@support.skip_wasi_stack_overflow()

0 commit comments

Comments
 (0)