summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-08-05 22:16:40 (GMT)
committerFred Drake <fdrake@acm.org>2002-08-05 22:16:40 (GMT)
commit63c4220f61b9cbfbd55160d0b2ab7e859d74e820 (patch)
treedb58924ea8421ce079028b9d16a3d5de31355432
parent94caa78ebf5e52716b383236f1a737a6bed57bf6 (diff)
downloadcpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.zip
cpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.tar.gz
cpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.tar.bz2
We only need to check for StopIteration here.
-rw-r--r--Lib/test/test_hotshot.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class UnlinkingLogReader(hotshot.log.LogReader):
def next(self, index=None):
try:
return hotshot.log.LogReader.next(self)
- except (IndexError, StopIteration):
+ except StopIteration:
self.close()
os.unlink(self.__logfn)
raise