From 0dde519fe172cf3ac7241cbb1ab93b35beaf6d6a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 11 Jul 2012 11:35:36 -0400 Subject: [PATCH] attempt to fix this test for pypy --- test/orm/test_instrumentation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.47.3