[test] also hide this message during test stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 24 Feb 2010 12:57:53 +0100
branchstable
changeset 4692 11a040e2601c
parent 4691 ae468fae9965
child 4693 1eaf5ce04844
[test] also hide this message during test
server/sources/native.py
--- a/server/sources/native.py	Wed Feb 24 12:57:30 2010 +0100
+++ b/server/sources/native.py	Wed Feb 24 12:57:53 2010 +0100
@@ -429,7 +429,8 @@
             if rollback:
                 try:
                     session.pool.connection(self.uri).rollback()
-                    self.critical('transaction has been rollbacked')
+                    if self.repo.config.mode != 'test':
+                        self.critical('transaction has been rollbacked')
                 except:
                     pass
             raise
@@ -453,7 +454,8 @@
                               query, args, ex.args[0])
             try:
                 session.pool.connection(self.uri).rollback()
-                self.critical('transaction has been rollbacked')
+                if self.repo.config.mode != 'test':
+                    self.critical('transaction has been rollbacked')
             except:
                 pass
             raise