summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_class.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_class.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_class.py')
-rw-r--r--Lib/test/test_class.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py
index cabf715..552c521 100644
--- a/Lib/test/test_class.py
+++ b/Lib/test/test_class.py
@@ -92,10 +92,6 @@ def __float__(self, *args):
return 1.0
@trackCall
-def __cmp__(self, *args):
- return 0
-
-@trackCall
def __eq__(self, *args):
return True
@@ -465,11 +461,6 @@ class ClassTests(unittest.TestCase):
hash(C0()) # This should work; the next two should raise TypeError
- class C1:
- def __cmp__(self, other): return 0
-
- self.assertRaises(TypeError, hash, C1())
-
class C2:
def __eq__(self, other): return 1