[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.125,1.126

Guido van Rossum gvanrossum@users.sourceforge.net
2002年4月02日 09:53:49 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv21076/Lib/test
Modified Files:
	test_descr.py 
Log Message:
SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()
broken w/ classmethods.
Bugfix candidate.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.125
retrieving revision 1.126
diff -C2 -d -r1.125 -r1.126
*** test_descr.py	1 Apr 2002 18:59:20 -0000	1.125
--- test_descr.py	2 Apr 2002 17:53:47 -0000	1.126
***************
*** 1215,1218 ****
--- 1215,1226 ----
 vereq(ff.__get__(0)(42), (int, 42))
 
+ # Test super() with classmethods (SF bug 535444)
+ veris(C.goo.im_self, C)
+ veris(D.goo.im_self, D)
+ veris(super(D,D).goo.im_self, D)
+ veris(super(D,d).goo.im_self, D)
+ vereq(super(D,D).goo(), (D,))
+ vereq(super(D,d).goo(), (D,))
+ 
 def classmethods_in_c():
 if verbose: print "Testing C-based class methods..."

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