From: Mike Bayer Date: Wed, 11 Jul 2012 15:35:36 +0000 (-0400) Subject: attempt to fix this test for pypy X-Git-Tag: rel_0_8_0b1~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dde519fe172cf3ac7241cbb1ab93b35beaf6d6a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git attempt to fix this test for pypy --- diff --git a/test/orm/test_instrumentation.py b/test/orm/test_instrumentation.py index 3efad65d52..d2388856fd 100644 --- a/test/orm/test_instrumentation.py +++ b/test/orm/test_instrumentation.py @@ -620,7 +620,10 @@ class MiscTest(fixtures.ORMTest): instrumentation.unregister_class(A) assert instrumentation.manager_of_class(A) is None assert not hasattr(A, 'x') - assert A.__init__ is object.__init__ + + # I prefer 'is' here but on pypy + # it seems only == works + assert A.__init__ == object.__init__ def test_compileonattr_rel_backref_a(self): m = MetaData()