summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_richcmp.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:02:16 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:02:16 (GMT)
commit0fb43762d5e0991da443887a27b277f199041b75 (patch)
tree0d77e7ab9d811251f431c01c88363c233d6f0f95 /Lib/test/test_richcmp.py
parentef4f7f0298f3a7eca6369b71e950957ad27ef3b5 (diff)
downloadcpython-0fb43762d5e0991da443887a27b277f199041b75.zip
cpython-0fb43762d5e0991da443887a27b277f199041b75.tar.gz
cpython-0fb43762d5e0991da443887a27b277f199041b75.tar.bz2
Must 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 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):