diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 07:03:44 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 07:03:44 (GMT) |
commit | 5a822fb7202e57803b8dc0e6cbed8a2b102993eb (patch) | |
tree | 013bca8f24f69b5017d316b7ed4761a8ea416e13 | |
parent | 7fbb9d11748ecc8ca56b4d136d5b038afbf22efb (diff) | |
download | cpython-5a822fb7202e57803b8dc0e6cbed8a2b102993eb.zip cpython-5a822fb7202e57803b8dc0e6cbed8a2b102993eb.tar.gz cpython-5a822fb7202e57803b8dc0e6cbed8a2b102993eb.tar.bz2 |
Exceptions should inherit from Exception now.
-rw-r--r-- | Lib/test/test_richcmp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py index 687298d..f412a89 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): |