Commits

Amaury Forgeot d'Arc committed 17c2817

Test and fix

  • Participants
  • Parent commits 3083feb
  • Branches improve-unwrap_spec

Comments (0)

Files changed (2)

pypy/objspace/std/objecttype.py

     __reduce_ex__ = gateway.interp2app(descr__reduce_ex__),
     __reduce__ = gateway.interp2app(descr__reduce__),
     __format__ = gateway.interp2app(descr___format__),
-    __subclasshook__ = gateway.interp2app(descr___subclasshook__),
+    __subclasshook__ = gateway.interp2app(descr___subclasshook__,
+                                          as_classmethod=True),
     __init__ = gateway.interp2app(descr__init__),
     )

pypy/objspace/std/test/test_obj.py

         class x(object):
             pass
         assert x().__subclasshook__(object()) is NotImplemented
+        assert x.__subclasshook__(object()) is NotImplemented