[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - test_file.py:1.6.4.1

Jeremy Hylton jeremy@zope.com
Mon, 10 Mar 2003 17:57:29 -0500


Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv22757/storage/tests

Modified Files:
      Tag: opaque-pickles-branch
	test_file.py 
Log Message:
Make sure transactions get aborted when a test finishes -- just in case.


=== Zope3/src/zodb/storage/tests/test_file.py 1.6 => 1.6.4.1 ===
--- Zope3/src/zodb/storage/tests/test_file.py:1.6	Wed Feb  5 18:28:27 2003
+++ Zope3/src/zodb/storage/tests/test_file.py	Mon Mar 10 17:57:28 2003
@@ -23,6 +23,8 @@
 
 from zodb.storage.tests.base import MinPO, zodb_unpickle
 
+from transaction import get_transaction
+
 class FileStorageTests(
     base.StorageTestBase,
     basic.BasicStorage,
@@ -50,6 +52,7 @@
         self.open(create=1)
 
     def tearDown(self):
+        get_transaction().abort()
         self._test_read_index()
         self._storage.close()
         base.removefs("FileStorageTests.fs")