summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-30 02:31:56 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-30 02:31:56 (GMT)
commitcab109779881ee4996a895499fce08380a63f315 (patch)
treebd2a5b154e4be6f87083524067887df4f801b0cd /Lib/test
parent13e57219d3143e4bae976a90846d6902e0514006 (diff)
downloadcpython-cab109779881ee4996a895499fce08380a63f315.zip
cpython-cab109779881ee4996a895499fce08380a63f315.tar.gz
cpython-cab109779881ee4996a895499fce08380a63f315.tar.bz2
__coerce__ is gone, there's nothing to test.
This test now passes after removing refs to __coerce__.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_compare.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/Lib/test/test_compare.py b/Lib/test/test_compare.py
index 2fde614..7c81194 100644
--- a/Lib/test/test_compare.py
+++ b/Lib/test/test_compare.py
@@ -6,19 +6,6 @@ class Empty:
def __repr__(self):
return '<Empty>'
-class Coerce:
- def __init__(self, arg):
- self.arg = arg
-
- def __repr__(self):
- return '<Coerce %s>' % self.arg
-
- def __coerce__(self, other):
- if isinstance(other, Coerce):
- return self.arg, other.arg
- else:
- return self.arg, other
-
class Cmp:
def __init__(self,arg):
self.arg = arg
@@ -30,7 +17,7 @@ class Cmp:
return cmp(self.arg, other)
class ComparisonTest(unittest.TestCase):
- set1 = [2, 2.0, 2L, 2+0j, Coerce(2), Cmp(2.0)]
+ set1 = [2, 2.0, 2L, 2+0j, Cmp(2.0)]
set2 = [[1], (3,), None, Empty()]
candidates = set1 + set2