Commit 171a135f authored by Łukasz Nowak's avatar Łukasz Nowak

Abort transaction before continuing.

Test can leave transaction in erroneous state, revert it.
parent 8535452e
......@@ -29,6 +29,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by H
try:
func(self, *args, **kwargs)
finally:
transaction.abort()
if script_name in self.portal.portal_skins.custom.objectIds():
self.portal.portal_skins.custom.manage_delObjects(script_name)
transaction.commit()
......
68
\ No newline at end of file
69
\ No newline at end of file
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