[CMF-checkins] CVS: CMF/CMFStaging/tests - testStaging.py:1.7

Shane Hathaway shane@cvs.zope.org
Thu, 12 Sep 2002 10:47:34 -0400


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()