[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - Corruption.py:1.4 testDemoStorage.py:1.4 testMappingStorage.py:1.3

Jeremy Hylton jeremy@zope.com
Fri, 25 Jan 2002 12:03:25 -0500


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2067

Modified Files:
	Corruption.py testDemoStorage.py testMappingStorage.py 
Log Message:
Remove dependency on StorageTestBase setUp() and tearDown().


=== StandaloneZODB/ZODB/tests/Corruption.py 1.3 => 1.4 ===
 
 class FileStorageCorruptTests(StorageTestBase):
-    __super_setUp = StorageTestBase.setUp
-    __super_tearDown = StorageTestBase.tearDown
 
     def setUp(self):
-        self.__super_setUp()
         self.path = tempfile.mktemp()
         self._storage = ZODB.FileStorage.FileStorage(self.path, create=1)
 
     def tearDown(self):
-        self.__super_tearDown()
+        self._storage.close()
         for ext in '', '.old', '.tmp', '.lock', '.index':
             path = self.path + ext
             if os.path.exists(path):


=== StandaloneZODB/ZODB/tests/testDemoStorage.py 1.3 => 1.4 ===
 
     def setUp(self):
-        StorageTestBase.StorageTestBase.setUp(self)
         self._storage = ZODB.DemoStorage.DemoStorage()
+
+    def tearDown(self):
+        self._storage.close()
 
 def test_suite():
     suite = unittest.makeSuite(DemoStorageTests, 'check')


=== StandaloneZODB/ZODB/tests/testMappingStorage.py 1.2 => 1.3 ===
 
     def setUp(self):
-        StorageTestBase.StorageTestBase.setUp(self)
         self._storage = ZODB.MappingStorage.MappingStorage()
+
+    def tearDown(self):
+        self._storage.close()
 
 def test_suite():
     suite = unittest.makeSuite(MappingStorageTests, 'check')