[Zodb-checkins] CVS: Zope/lib/python/BTrees/tests - testConflict.py:1.13.6.3

Casey Duncan casey at zope.com
Tue Jul 15 10:52:43 EDT 2003


Update of /cvs-repository/Zope/lib/python/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv22716/lib/python/BTrees/tests

Modified Files:
      Tag: Zope-2_6-branch
	testConflict.py 
Log Message:
Conflict tests now cleanup after themselves


=== Zope/lib/python/BTrees/tests/testConflict.py 1.13.6.2 => 1.13.6.3 ===
--- Zope/lib/python/BTrees/tests/testConflict.py:1.13.6.2	Fri Jan 17 12:26:51 2003
+++ Zope/lib/python/BTrees/tests/testConflict.py	Tue Jul 15 09:52:38 2003
@@ -27,15 +27,17 @@
     storage = None
 
     def tearDown(self):
+        from ZODB.tests.StorageTestBase import removefs
         del self.t
         if self.storage is not None:
             self.storage.close()
+            removefs(self.fsname)
 
     def openDB(self):
         from ZODB.FileStorage import FileStorage
         from ZODB.DB import DB
-        n = 'fs_tmp__%s' % os.getpid()
-        self.storage = FileStorage(n)
+        self.fsname = 'fs_tmp__%s' % os.getpid()
+        self.storage = FileStorage(self.fsname)
         self.db = DB(self.storage)
 
 class MappingBase(Base):




More information about the Zodb-checkins mailing list