diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-16 19:34:46 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-16 19:34:46 +0000 |
commit | 2dacdc18628852ac07537b728c01fa08266d2800 (patch) | |
tree | 9efee6cc2866073f0cdb935d304cab5f1b2720be /Lib/test/test_class.py | |
parent | 320f88b6c8a3b135119d3c8037018561c0ec3528 (diff) | |
download | cpython-2dacdc18628852ac07537b728c01fa08266d2800.tar.gz |
remove some more references to __cmp__ #1717
Diffstat (limited to 'Lib/test/test_class.py')
-rw-r--r-- | Lib/test/test_class.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index cabf715dcb..552c521cdf 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 |