logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: CMF/CMFStaging/tests - testStaging.py:1.7: msg#00019

Subject: CVS: CMF/CMFStaging/tests - testStaging.py:1.7
Update of /cvs-repository/CMF/CMFStaging/tests
In directory cvs.zope.org:/tmp/cvs-serv22709/tests

Modified Files:
        testStaging.py 
Log Message:
Either commit or abort the transaction in tearDown(), otherwise subsequent
tests can break.


=== CMF/CMFStaging/tests/testStaging.py 1.6 => 1.7 ===
--- CMF/CMFStaging/tests/testStaging.py:1.6     Wed Jun 12 14:00:15 2002
+++ CMF/CMFStaging/tests/testStaging.py Thu Sep 12 10:47:34 2002
@@ -67,6 +67,9 @@
         app = self.app
         if hasattr(app, 'testroot'):
             app._delObject('testroot')
+            get_transaction().commit()
+        else:
+            get_transaction().abort()
         self.conn.close()
         noSecurityManager()
 





<Prev in Thread] Current Thread [Next in Thread>