summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-02 17:53:47 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-02 17:53:47 (GMT)
commit155db9aa222e96fcaf2db4d80b414098889a7c5d (patch)
tree1140cb6381b5c3b90189de53c9f0f0919f556fae /Lib
parent103b548a76535720cd379ea6295958caa8e6e025 (diff)
downloadcpython-155db9aa222e96fcaf2db4d80b414098889a7c5d.zip
cpython-155db9aa222e96fcaf2db4d80b414098889a7c5d.tar.gz
cpython-155db9aa222e96fcaf2db4d80b414098889a7c5d.tar.bz2
SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()
broken w/ classmethods. Bugfix candidate.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_descr.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 862fc77..dd85168 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1214,6 +1214,14 @@ def classmethods():
vereq(ff.__get__(0, int)(42), (int, 42))
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..."
import xxsubtype as spam