Commit a39219f1 authored by Jérome Perrin's avatar Jérome Perrin

handle transaction correctly in PropertySheetTestCase.tearDown, because...

handle transaction correctly in PropertySheetTestCase.tearDown, because ERP5TypeTestCase.tearDown will abort anyway



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18732 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ae7746c
...@@ -57,6 +57,7 @@ class PropertySheetTestCase(ERP5TypeTestCase): ...@@ -57,6 +57,7 @@ class PropertySheetTestCase(ERP5TypeTestCase):
def tearDown(self): def tearDown(self):
"""Clean up """ """Clean up """
get_transaction().abort()
ttool = self.getTypesTool() ttool = self.getTypesTool()
class_tool = self.getClassTool() class_tool = self.getClassTool()
# remove all property sheet we added to type informations # remove all property sheet we added to type informations
...@@ -70,6 +71,7 @@ class PropertySheetTestCase(ERP5TypeTestCase): ...@@ -70,6 +71,7 @@ class PropertySheetTestCase(ERP5TypeTestCase):
# could break next tests. # could break next tests.
removeLocalPropertySheet(psheet) removeLocalPropertySheet(psheet)
ti.property_sheet_list = ps_list ti.property_sheet_list = ps_list
get_transaction().commit()
_aq_reset() _aq_reset()
ERP5TypeTestCase.tearDown(self) ERP5TypeTestCase.tearDown(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment