summaryrefslogtreecommitdiff
path: root/Lib/test/test_hash.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-27 18:17:45 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-01-27 18:17:45 +0000
commite3fa6230b8872e08cad4bb558395aff059ce6c5a (patch)
tree248ab67be63fc3bdf77f7cd4a0b5d8de72c973ac /Lib/test/test_hash.py
parenta827877ca57ed8844c0c226f08d8e2edb8376676 (diff)
downloadcpython-e3fa6230b8872e08cad4bb558395aff059ce6c5a.tar.gz
Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from
the standard library and tests.
Diffstat (limited to 'Lib/test/test_hash.py')
-rw-r--r--Lib/test/test_hash.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
index 807c2c46b3..5881d03c51 100644
--- a/Lib/test/test_hash.py
+++ b/Lib/test/test_hash.py
@@ -55,13 +55,8 @@ class OnlyInequality(object):
def __ne__(self, other):
return self is not other
-class OnlyCmp(object):
- def __cmp__(self, other):
- return cmp(id(self), id(other))
-
class InheritedHashWithEquality(FixedHash, OnlyEquality): pass
class InheritedHashWithInequality(FixedHash, OnlyInequality): pass
-class InheritedHashWithCmp(FixedHash, OnlyCmp): pass
class NoHash(object):
__hash__ = None
@@ -74,7 +69,6 @@ class HashInheritanceTestCase(unittest.TestCase):
fixed_expected = [FixedHash(),
InheritedHashWithEquality(),
InheritedHashWithInequality(),
- InheritedHashWithCmp(),
]
error_expected = [NoHash(),
OnlyEquality(),