1. Dan Loewenherz
  2. pypy

Commits

Amaury Forgeot d'Arc  committed f2c3020

Another test, which passes

  • Participants
  • Parent commits a8cfd51
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/__builtin__/test/test_descriptor.py

View file
             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)