From f266c8f92f1267f5f2834ab548dc5feda08b90db Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 9 May 2010 12:27:04 +0200 Subject: [PATCH] fix init-check to work also on pypy-c (armin around) --HG-- branch : trunk --- py/_test/pycollect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/_test/pycollect.py b/py/_test/pycollect.py index eb6702b89..038a6fb2b 100644 --- a/py/_test/pycollect.py +++ b/py/_test/pycollect.py @@ -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