commit | 526286725d3fae0d9ebea9b32308e07b701afec6 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Mon Nov 05 17:41:48 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Mon Nov 05 17:41:48 2001 +0000 |
tree | 53707911efd00f1d46a390209e9e1b5cef46c6c2 | |
parent | 3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd [diff] |
Add regression test for SF bug #476616 -- make sure copy of a derived class does not share data with the original.
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py index 49be8c6..0f2fbb8 100644 --- a/Lib/test/test_userdict.py +++ b/Lib/test/test_userdict.py
@@ -75,6 +75,10 @@ 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())