summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_richcmp.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-16 19:34:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-10-16 19:34:46 (GMT)
commit60192084c405292f874d886eed05ed83614d20c4 (patch)
tree390e2ac0930a866fb1a97d35b469109f09df3ecc /Lib/test/test_richcmp.py
parentaaebe1c11d0eccc067cb6e5bb4e28543441fd2df (diff)
downloadcpython-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.py2
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