test_hotshot fails on Windows now. Added XXX comment explaining why,

and that I don't know how to fix it.  Fred?
This commit is contained in:
Tim Peters 2002-07-17 23:52:58 +00:00
parent f31ff27c57
commit ba8c069eb9

View File

@ -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