[Python-checkins] python/dist/src/Lib/test test_descr.py,1.153,1.154

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2002年8月13日 10:16:51 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11580/Lib/test
Modified Files:
	test_descr.py 
Log Message:
Add test for SF bug # 575229, multiple inheritance w/ slots dumps core
Fix already checked in by Guido
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.153
retrieving revision 1.154
diff -C2 -d -r1.153 -r1.154
*** test_descr.py	10 Aug 2002 05:42:07 -0000	1.153
--- test_descr.py	13 Aug 2002 17:16:49 -0000	1.154
***************
*** 3238,3241 ****
--- 3238,3251 ----
 del o
 
+ def slotmultipleinheritance():
+ # SF bug 575229, multiple inheritance w/ slots dumps core
+ class A(object):
+ __slots__=()
+ class B(object):
+ pass
+ class C(A,B) :
+ __slots__=()
+ C().x=2
+ 
 def testrmul():
 # SF patch 592646
***************
*** 3345,3348 ****
--- 3355,3359 ----
 subtype_resurrection()
 slottrash()
+ slotmultipleinheritance()
 testrmul()
 if verbose: print "All OK"

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