[Zope-Checkins] SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/utils.py utils.appcall(), too, must abort before closing the connection, just in case

Stefan H. Holek stefan at epy.co.at
Tue May 17 14:09:24 EDT 2005


Log message for revision 30379:
  utils.appcall(), too, must abort before closing the connection, just in case
  something went wrong during execution of 'function'.
  

Changed:
  U   Zope/trunk/lib/python/Testing/ZopeTestCase/utils.py

-=-
Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/utils.py
===================================================================
--- Zope/trunk/lib/python/Testing/ZopeTestCase/utils.py	2005-05-17 18:05:34 UTC (rev 30378)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/utils.py	2005-05-17 18:09:24 UTC (rev 30379)
@@ -147,6 +147,7 @@
     try:
         return function(*args, **kw)
     finally:
+        transaction.abort()
         close(app)
 
 



More information about the Zope-Checkins mailing list