[Zodb-checkins] CVS: Zope2/lib/python/ZODB - testFileStorage.py:1.7
jeremy@digicool.com
jeremy@digicool.com
Fri, 18 May 2001 11:33:00 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZODB/tests
In directory korak.digicool.com:/tmp/cvs-serv22463
Modified Files:
testFileStorage.py
Log Message:
Cleanup properly
--- Updated File testFileStorage.py in package Zope2/lib/python/ZODB --
--- testFileStorage.py 2001/05/02 20:52:53 1.6
+++ testFileStorage.py 2001/05/18 15:32:59 1.7
@@ -27,7 +27,10 @@
def tearDown(self):
StorageTestBase.StorageTestBase.tearDown(self)
- os.remove('FileStorageTests.fs')
+ for ext in '', '.old', '.tmp', '.lock', '.index':
+ path = 'FileStorageTests.fs' + ext
+ if os.path.exists(path):
+ os.remove(path)
def test_suite():
return unittest.makeSuite(FileStorageTests, 'check')