From: Tim Peters Date: Wed, 17 Jul 2002 23:52:58 +0000 (+0000) Subject: test_hotshot fails on Windows now. Added XXX comment explaining why, X-Git-Tag: v2.3c1~4960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba8c069eb90cb6f26bc7746f56074603071d7bd2;p=python test_hotshot fails on Windows now. Added XXX comment explaining why, and that I don't know how to fix it. Fred? --- diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index ebd2aaa115..db3c914b5b 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -31,6 +31,10 @@ class UnlinkingLogReader(hotshot.log.LogReader): 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