Skip to content

Commit

Permalink
- abort the transaction before closing the connection to prevent trac…
Browse files Browse the repository at this point in the history
…ebacks
  • Loading branch information
dataflake authored and hannosch committed May 13, 2017
1 parent ae608f6 commit ea1c1f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OFS/tests/testCopySupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def _initFolders(self):
# later and pretend we didn't touch the ZODB.
transaction.commit()
except Exception:
transaction.abort()
self.connection.close()
raise
transaction.begin()
Expand Down

0 comments on commit ea1c1f9

Please sign in to comment.