[Zope-Checkins] CVS: Packages/BTrees/tests - testBTrees.py:1.14.36.1
Jeffrey P Shell
jeffrey@Digicool.com
Fri, 3 Aug 2001 13:57:41 -0400
Update of /cvs-repository/Packages/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv23981
Modified Files:
Tag: Zope-2_4-branch
testBTrees.py
Log Message:
Applied Collector Entry #2456 - testBTrees.py not cross platform.
Replaces a call to os.system() with calls to glob() and os.remove().
Pointed out by Chris Withers.
=== Packages/BTrees/tests/testBTrees.py 1.14 => 1.14.36.1 ===
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__()