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

Michael Hudson mwh@users.sourceforge.net
Fri, 05 Apr 2002 07:42:53 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv843

Modified Files:
      Tag: release22-maint
	test_descr.py 
Log Message:
backport gvanrossum's checkin of
    revision 1.126 of test_descr.py

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.113.4.9
retrieving revision 1.113.4.10
diff -C2 -d -r1.113.4.9 -r1.113.4.10
*** test_descr.py	18 Mar 2002 03:05:36 -0000	1.113.4.9
--- test_descr.py	5 Apr 2002 15:42:50 -0000	1.113.4.10
***************
*** 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 staticmethods():
      if verbose: print "Testing static methods..."