[Python-checkins] CVS: python/dist/src/Lib/test test_userdict.py,1.4,1.5

Fred L. Drake fdrake@users.sourceforge.net
2001年11月05日 09:41:50 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11572/test
Modified Files:
	test_userdict.py 
Log Message:
Add regression test for SF bug #476616 -- make sure copy of a derived class
does not share data with the original.
Index: test_userdict.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_userdict.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_userdict.py	2001年08月07日 17:50:06	1.4
--- test_userdict.py	2001年11月05日 17:41:48	1.5
***************
*** 76,79 ****
--- 76,83 ----
 verify(m2a == m2)
 
+ # SF bug #476616 -- copy() of UserDict subclass shared data
+ m2['foo'] = 'bar'
+ verify(m2a != m2)
+ 
 # Test keys, items, values
 

AltStyle によって変換されたページ (->オリジナル) /