summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-23 17:40:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-08-23 17:40:33 (GMT)
commit9c2930e4bedcbb09d8a0cd484dec72c6246f6735 (patch)
tree1f515d00f8789d908edb2d2a5a5ee68aa0439fd0 /Lib/test
parent7311729790172a6f85db0c31299f06feba217e87 (diff)
downloadcpython-9c2930e4bedcbb09d8a0cd484dec72c6246f6735.zip
cpython-9c2930e4bedcbb09d8a0cd484dec72c6246f6735.tar.gz
cpython-9c2930e4bedcbb09d8a0cd484dec72c6246f6735.tar.bz2
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_functools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 211ef18..41a98a2 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -481,7 +481,7 @@ class TestTotalOrdering(unittest.TestCase):
# new methods should not overwrite existing
@functools.total_ordering
class A(int):
- raise Exception()
+ pass
self.assert_(A(1) < A(2))
self.assert_(A(2) > A(1))
self.assert_(A(1) <= A(2))
@@ -564,6 +564,7 @@ def test_main(verbose=None):
TestPartialSubclass,
TestPythonPartial,
TestUpdateWrapper,
+ TestTotalOrdering,
TestWraps,
TestReduce,
TestLRU,