]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
You can't unlink open files on Windows.
authorTim Peters <tim.peters@gmail.com>
Sat, 13 Oct 2001 00:19:39 +0000 (00:19 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 13 Oct 2001 00:19:39 +0000 (00:19 +0000)
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>).

Lib/test/test_hotshot.py

index d406290d1c84f45f1b328e0f46d4f92770ea094d..4ddc907798d8d24b1245c1f250bf6b9cf61d24a8 100644 (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):