diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-16 19:34:46 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-16 19:34:46 (GMT) |
commit | 60192084c405292f874d886eed05ed83614d20c4 (patch) | |
tree | 390e2ac0930a866fb1a97d35b469109f09df3ecc /Lib/test/test_richcmp.py | |
parent | aaebe1c11d0eccc067cb6e5bb4e28543441fd2df (diff) | |
download | cpython-60192084c405292f874d886eed05ed83614d20c4.zip cpython-60192084c405292f874d886eed05ed83614d20c4.tar.gz cpython-60192084c405292f874d886eed05ed83614d20c4.tar.bz2 |
remove some more references to __cmp__ #1717
Diffstat (limited to 'Lib/test/test_richcmp.py')
-rw-r--r-- | Lib/test/test_richcmp.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py index 435de75..72e636d 100644 --- a/Lib/test/test_richcmp.py +++ b/Lib/test/test_richcmp.py @@ -198,13 +198,11 @@ class MiscTest(unittest.TestCase): def __le__(self, other): raise TestFailed("This shouldn't happen") def __ge__(self, other): raise TestFailed("This shouldn't happen") def __ne__(self, other): raise TestFailed("This shouldn't happen") - def __cmp__(self, other): raise RuntimeError("expected") a = Misb() b = Misb() self.assertEqual(a<b, 0) self.assertEqual(a==b, 0) self.assertEqual(a>b, 0) - self.assertRaises(RuntimeError, cmp, a, b) def test_not(self): # Check that exceptions in __bool__ are properly |