From: Benjamin Peterson Date: Sun, 11 Apr 2010 01:43:16 +0000 (+0000) Subject: Merged revisions 79944 via svnmerge from X-Git-Tag: v3.2a1~1195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42ebee3efe77050f73958c61f9c50b78a5c978fe;p=python 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 ........ --- diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 5cc2a50e3d..f6ccc8742a 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 = (