Author: neal.norwitz
Date: Fri Mar 24 08:02:16 2006
New Revision: 43273
Modified:
python/branches/p3yk/Lib/test/test_richcmp.py
Log:
Must inherit from Exception now.
Modified: python/branches/p3yk/Lib/test/test_richcmp.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_richcmp.py (original)
+++ python/branches/p3yk/Lib/test/test_richcmp.py Fri Mar 24 08:02:16 2006
@@ -211,7 +211,7 @@
# 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 @@
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):
_______________________________________________
Python-3000-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-3000-checkins