Commit e9166cf2 authored by Chris Withers's avatar Chris Withers

Since when was Zope unix-only?!

Maybe the tests shouldn't use Unix-specific code then ;-)
parent d6db71a7
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
############################################################################## ##############################################################################
import sys, os, unittest import sys, os, unittest
from glob import glob
import zLOG import zLOG
def log_write(subsystem, severity, summary, detail, error): def log_write(subsystem, severity, summary, detail, error):
...@@ -65,7 +66,8 @@ class Tests(unittest.TestCase): ...@@ -65,7 +66,8 @@ class Tests(unittest.TestCase):
get_transaction().abort() get_transaction().abort()
if hasattr(self, 'jar'): if hasattr(self, 'jar'):
self.dbclose() self.dbclose()
os.system('rm -f fs_tmp__*') for path in glob('fs_tmp__*'):
os.remove(path)
zLOG.log_write=self.old_log_write zLOG.log_write=self.old_log_write
def checkSimpleAddDelete(self): def checkSimpleAddDelete(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment