[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder/tests - testTemporaryStorage.py:1.4
Jeremy Hylton
jeremy@zope.com
Tue, 22 Jan 2002 00:47:36 -0500
Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder/tests
In directory cvs.zope.org:/tmp/cvs-serv5065
Modified Files:
testTemporaryStorage.py
Log Message:
Fix test failures caused by change to StorageTestBase.setUp().
The base setUp() initializes _storage to None. A subclass that
extends it must call the superclass method before initializing
_storage.
Also, mixin MTStorage, since this storage out to be thread-safe.
=== Zope/lib/python/Products/TemporaryFolder/tests/testTemporaryStorage.py 1.3 => 1.4 ===
from ZODB.tests import StorageTestBase, BasicStorage, \
Synchronization, ConflictResolution, \
- Corruption, RevisionStorage
+ Corruption, RevisionStorage, MTStorage
class TemporaryStorageTests(
StorageTestBase.StorageTestBase,
@@ -20,14 +20,15 @@
BasicStorage.BasicStorage,
Synchronization.SynchronizedStorage,
ConflictResolution.ConflictResolvingStorage,
+ MTStorage.MTStorage,
):
def open(self, **kwargs):
self._storage = TemporaryStorage.TemporaryStorage('foo')
def setUp(self):
- self.open()
StorageTestBase.StorageTestBase.setUp(self)
+ self.open()
def tearDown(self):
StorageTestBase.StorageTestBase.tearDown(self)