Kaydet (Commit) a11da597 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

add test for class with no operations defined

üst ec6393f3
......@@ -422,6 +422,12 @@ 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 = (
TestPartial,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment