[test] fix expected error stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 01 Apr 2010 08:23:57 +0200
branchstable
changeset 5126 c869d8e7d166
parent 5124 d4d0b4b2298a
child 5127 3c2dda44e2f6
[test] fix expected error
server/test/unittest_repository.py
--- a/server/test/unittest_repository.py	Wed Mar 31 17:02:21 2010 +0200
+++ b/server/test/unittest_repository.py	Thu Apr 01 08:23:57 2010 +0200
@@ -396,7 +396,8 @@
                 self.entity.set_attributes(alias=u'foo')
         with self.temporary_appobjects(DummyBeforeHook):
             req = self.request()
-            self.assertRaises(RepositoryError, req.create_entity,
+            # XXX will fail with python -O
+            self.assertRaises(AssertionError, req.create_entity,
                               'EmailAddress', address=u'a@b.fr')