[Zodb-checkins] CVS: Packages/BTrees/tests - testConflict.py:1.2.36.1

Evan Simpson evan@cvs.zope.org
Mon, 6 Aug 2001 13:14:05 -0400


Update of /cvs-repository/Packages/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv1356

Modified Files:
      Tag: Zope-2_4-branch
	testConflict.py 
Log Message:
Replace os.system call with os.remove.


=== Packages/BTrees/tests/testConflict.py 1.2 => 1.2.36.1 ===
 ##############################################################################
 import sys, os, time, whrandom
+from glob import glob
 
 try:
     sys.path.insert(0, '.')
@@ -119,7 +120,8 @@
         root = None
 
     def _delDB(self):
-        os.system('rm fs_tmp__*')
+        for fn in glob('rm fs_tmp__*'):
+            os.remove(fn)
 
 class MappingBase(Base):
     """ Tests common to mappings (buckets, btrees) """