[FIX] database_cleanup: TransactionCase already does rollback
No need to rollback here as TransactionCase does a safe rollback.pull/2684/head
parent
8d364c3afc
commit
62885e310d
|
@ -12,10 +12,3 @@ class Common(TransactionCase):
|
|||
# we also need the original registry for further tests, so save a
|
||||
# reference to it
|
||||
self.original_registry = Registry.registries[self.env.cr.dbname]
|
||||
|
||||
def tearDown(self):
|
||||
super(Common, self).tearDown()
|
||||
# Force rollback to avoid unstable test database
|
||||
self.env.cr.rollback()
|
||||
# reset afterwards
|
||||
Registry.registries[self.env.cr.dbname] = self.original_registry
|
||||
|
|
Loading…
Reference in New Issue