From 526286725d3fae0d9ebea9b32308e07b701afec6 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 5 Nov 2001 17:41:48 +0000 Subject: [PATCH] Add regression test for SF bug #476616 -- make sure copy of a derived class does not share data with the original. --- Lib/test/test_userdict.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py index 49be8c65b9d..0f2fbb8f8e4 100644 --- a/Lib/test/test_userdict.py +++ b/Lib/test/test_userdict.py @@ -75,6 +75,10 @@ m2 = MyUserDict(u2) m2a = m2.copy() verify(m2a == m2) +# SF bug #476616 -- copy() of UserDict subclass shared data +m2['foo'] = 'bar' +verify(m2a != m2) + # Test keys, items, values verify(u2.keys() == d2.keys())