[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/tests - testTextIndex.py:1.6
Chris Withers
chrisw@nipltd.com
Tue, 29 Jan 2002 09:33:55 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv4774
Modified Files:
testTextIndex.py
Log Message:
Since when was Zope unix-only?!
Maybe the tests shouldn't use Unix-specific code then ;-)
=== Zope/lib/python/Products/PluginIndexes/TextIndex/tests/testTextIndex.py 1.5 => 1.6 ===
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):