Commit 31aa1f89 authored by Fred Drake's avatar Fred Drake

Add regression test for SF bug #476616 -- make sure copy of a derived class

does not share data with the original.
parent d3302f98
......@@ -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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment