Commits

Amaury Forgeot d'Arc committed f2c3020

Another test, which passes

Comments (0)

Files changed (1)

pypy/module/__builtin__/test/test_descriptor.py

             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)