[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/ZClasses/tests.py Added missing abourt to tear-down code

Jim Fulton jim at zope.com
Fri Apr 1 06:24:29 EST 2005


Log message for revision 29775:
  Added missing abourt to tear-down code
  

Changed:
  U   Zope/branches/jim-fix-zclasses/lib/python/ZClasses/tests.py

-=-
Modified: Zope/branches/jim-fix-zclasses/lib/python/ZClasses/tests.py
===================================================================
--- Zope/branches/jim-fix-zclasses/lib/python/ZClasses/tests.py	2005-04-01 11:24:27 UTC (rev 29774)
+++ Zope/branches/jim-fix-zclasses/lib/python/ZClasses/tests.py	2005-04-01 11:24:29 UTC (rev 29775)
@@ -41,6 +41,7 @@
     del sys.modules['ZClasses.example']
 
 def tearDown27(test):
+    transaction.abort()
     test.globs['db'].close()
     indexname = os.path.join(os.path.dirname(__file__), '27.fs.index')
     os.remove(indexname)



More information about the Zope-Checkins mailing list