mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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 ........
This commit is contained in:
parent
c083a3b86b
commit
42ebee3efe
1 changed files with 5 additions and 0 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue