fix init-check to work also on pypy-c (armin around)

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-05-09 12:27:04 +02:00
parent 1706947edd
commit f266c8f92f
1 changed files with 1 additions and 1 deletions

View File

@ -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