summaryrefslogtreecommitdiff
path: root/Lib/test/test_richcmp.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:03:44 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:03:44 +0000
commit5a822fb7202e57803b8dc0e6cbed8a2b102993eb (patch)
tree013bca8f24f69b5017d316b7ed4761a8ea416e13 /Lib/test/test_richcmp.py
parent7fbb9d11748ecc8ca56b4d136d5b038afbf22efb (diff)
downloadcpython-git-5a822fb7202e57803b8dc0e6cbed8a2b102993eb.tar.gz
Exceptions should inherit from Exception now.
Diffstat (limited to 'Lib/test/test_richcmp.py')
-rw-r--r--Lib/test/test_richcmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py
index 687298d26e..f412a89055 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):