From: Tim Peters Date: Sat, 13 Oct 2001 00:19:39 +0000 (+0000) Subject: You can't unlink open files on Windows. X-Git-Tag: v2.2.1c1~1309 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10603b8799714c57f87c265867103a1d6c54f3fa;p=thirdparty%2FPython%2Fcpython.git 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 ). --- diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index d406290d1c84..4ddc907798d8 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -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):