fix init-check to work also on pypy-c (armin around)
--HG-- branch : trunk
This commit is contained in:
parent
1706947edd
commit
f266c8f92f
|
@ -393,5 +393,5 @@ class Function(FunctionMixin, py.test.collect.Item):
|
|||
def hasinit(obj):
|
||||
init = getattr(obj, '__init__', None)
|
||||
if init:
|
||||
if not isinstance(init, type(object.__init__)):
|
||||
if init != object.__init__:
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue