[Zope-Checkins] CVS: Packages/BTrees/tests - testBTrees.py:1.15
Jeffrey P Shell
jeffrey@Digicool.com
Fri, 3 Aug 2001 13:50:40 -0400
Update of /cvs-repository/Packages/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv23486
Modified Files:
testBTrees.py
Log Message:
Collector issue #2456 (changes a call of os.system('rm...') to use
glob() and os.remove().
=== Packages/BTrees/tests/testBTrees.py 1.14 => 1.15 ===
from unittest import TestCase, TestSuite, JUnitTextTestRunner, VerboseTextTestRunner, makeSuite
+from glob import glob
+import os
+
TextTestRunner = VerboseTextTestRunner
class Base:
@@ -119,8 +122,9 @@
root = None
def _delDB(self):
- os.system('rm fs_tmp__*')
-
+ for file in glob('fs_tmp__*'):
+ os.remove(file)
+
def testLoadAndStore(self):
for i in 0, 10, 1000:
t = self.t.__class__()