add test for class with no operations defined
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 05e19b1..6e3533a 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -422,6 +422,12 @@
         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 = (
         TestPartial,