--- 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