diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-11 01:43:16 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-11 01:43:16 (GMT) |
commit | 42ebee3efe77050f73958c61f9c50b78a5c978fe (patch) | |
tree | f8ebe742f6933d24e61cc2396842b1d3fd7af466 /Lib/test/test_functools.py | |
parent | c083a3b86b24286b3eca0d09ac3f17426984af5a (diff) | |
download | cpython-42ebee3efe77050f73958c61f9c50b78a5c978fe.zip cpython-42ebee3efe77050f73958c61f9c50b78a5c978fe.tar.gz cpython-42ebee3efe77050f73958c61f9c50b78a5c978fe.tar.bz2 |
Merged revisions 79944 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79944 | benjamin.peterson | 2010-04-10 20:40:32 -0500 (Sat, 10 Apr 2010) | 1 line
add test for class with no operations defined
........
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r-- | Lib/test/test_functools.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 5cc2a50..f6ccc87 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -448,6 +448,11 @@ class TestTotalOrdering(unittest.TestCase): self.assert_(A(2) <= A(2)) self.assert_(A(2) >= A(2)) + def test_no_operations_defined(self): + with self.assertRaises(ValueError): + @functools.total_ordering + class A: + pass def test_main(verbose=None): test_classes = ( |