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>).
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py
index d406290..4ddc907 100644
--- a/Lib/test/test_hotshot.py
+++ b/Lib/test/test_hotshot.py
@@ -28,7 +28,7 @@
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):