diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index ebd2aaa1153..db3c914b5bf 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -31,6 +31,10 @@ def next(self, index=None): try: return hotshot.log.LogReader.next(self) except (IndexError, StopIteration): + # XXX This fails on Windows because the named file is still + # XXX open. Offhand I couldn't find an appropriate way to close + # XXX the file object, or even where the heck it is. LogReader + # XXX in particular doesn't have a close() method. os.unlink(self.__logfn) raise