[pypy-commit] pypy py3k: Another test, which passes
amauryfa
noreply at buildbot.pypy.org
Wed Oct 12 22:23:20 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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)
More information about the pypy-commit
mailing list