Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r47982:f2c302086506
Date: 2011-10-12 22:19 +0200
http://bitbucket.org/pypy/pypy/changeset/f2c302086506/
Log: Another test, which passes
diff --git a/pypy/module/__builtin__/test/test_descriptor.py
b/pypy/module/__builtin__/test/test_descriptor.py
--- a/pypy/module/__builtin__/test/test_descriptor.py
+++ b/pypy/module/__builtin__/test/test_descriptor.py
@@ -110,6 +110,17 @@
f = classmethod(f)
assert B().f() == [B, B]
+ def test_super_magic_classmethod(self):
+ class A(object):
+ def f(cls):
+ return cls
+ f = classmethod(f)
+ class B(A):
+ def f(cls):
+ return [cls, super().f()]
+ f = classmethod(f)
+ assert B().f() == [B, B]
+
def test_super_fail(self):
try:
super(list, 2)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit