We only need to check for StopIteration here.
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py
index c4d2484..dad2bd4 100644
--- a/Lib/test/test_hotshot.py
+++ b/Lib/test/test_hotshot.py
@@ -30,7 +30,7 @@
     def next(self, index=None):
         try:
             return hotshot.log.LogReader.next(self)
-        except (IndexError, StopIteration):
+        except StopIteration:
             self.close()
             os.unlink(self.__logfn)
             raise