From: Neal Norwitz Date: Fri, 24 Mar 2006 07:03:44 +0000 (+0000) Subject: Exceptions should inherit from Exception now. X-Git-Tag: v2.5a0~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a822fb7202e57803b8dc0e6cbed8a2b102993eb;p=thirdparty%2FPython%2Fcpython.git Exceptions should inherit from Exception now. --- diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py index 687298d26e50..f412a89055cd 100644 --- a/Lib/test/test_richcmp.py +++ b/Lib/test/test_richcmp.py @@ -211,7 +211,7 @@ class MiscTest(unittest.TestCase): # Check that exceptions in __nonzero__ are properly # propagated by the not operator import operator - class Exc: + class Exc(Exception): pass class Bad: def __nonzero__(self): @@ -305,7 +305,7 @@ class ListTest(unittest.TestCase): def test_badentry(self): # make sure that exceptions for item comparison are properly # propagated in list comparisons - class Exc: + class Exc(Exception): pass class Bad: def __eq__(self, other):