You can't unlink open files on Windows.

Simply commented it out, and then test_hotshot passes on Windows.
Leaving to Fred to fix "the right way" (it seems to be a feature of
unittest that all unittests try to unlink open files <wink>).
This commit is contained in:
Tim Peters 2001-10-13 00:19:39 +00:00
parent 1b6e08a25e
commit 10603b8799

View file

@ -28,7 +28,7 @@ class HotShotTestCase(unittest.TestCase):
def get_logreader(self):
log = hotshot.log.LogReader(self.logfn)
os.unlink(self.logfn)
#XXX os.unlink(self.logfn)
return log
def get_events_wotime(self):