diff options
author | Fred Drake <fdrake@acm.org> | 2001-11-05 17:41:48 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-11-05 17:41:48 (GMT) |
commit | 526286725d3fae0d9ebea9b32308e07b701afec6 (patch) | |
tree | 53707911efd00f1d46a390209e9e1b5cef46c6c2 /Lib | |
parent | 3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd (diff) | |
download | cpython-526286725d3fae0d9ebea9b32308e07b701afec6.zip cpython-526286725d3fae0d9ebea9b32308e07b701afec6.tar.gz cpython-526286725d3fae0d9ebea9b32308e07b701afec6.tar.bz2 |
Add regression test for SF bug #476616 -- make sure copy of a derived class
does not share data with the original.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_userdict.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ 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()) |