mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
add test for class with no operations defined
This commit is contained in:
parent
ec6393f380
commit
a11da59755
1 changed files with 6 additions and 0 deletions
|
@ -422,6 +422,12 @@ class TestTotalOrdering(unittest.TestCase):
|
||||||
self.assert_(A(2) <= A(2))
|
self.assert_(A(2) <= A(2))
|
||||||
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):
|
def test_main(verbose=None):
|
||||||
test_classes = (
|
test_classes = (
|
||||||
TestPartial,
|
TestPartial,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue