[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/tests - testTextIndex.py:1.5.16.1
Chris Withers
chrisw@nipltd.com
Wed, 30 Jan 2002 08:00:16 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv14706
Modified Files:
Tag: Zope-2_5-branch
testTextIndex.py
Log Message:
Fix unixism on 2.5 branch.
=== Zope/lib/python/Products/PluginIndexes/TextIndex/tests/testTextIndex.py 1.5 => 1.5.16.1 ===
import sys, os, unittest
+from glob import glob
import zLOG
def log_write(subsystem, severity, summary, detail, error):
@@ -65,7 +66,8 @@
get_transaction().abort()
if hasattr(self, 'jar'):
self.dbclose()
- os.system('rm -f fs_tmp__*')
+ for path in glob('fs_tmp__*'):
+ os.remove(path)
zLOG.log_write=self.old_log_write
def checkSimpleAddDelete(self):