diff options
Diffstat (limited to 'Lib/test/test_coercion.py')
-rw-r--r-- | Lib/test/test_coercion.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py index e3a7e43..a70f82d 100644 --- a/Lib/test/test_coercion.py +++ b/Lib/test/test_coercion.py @@ -309,6 +309,7 @@ class CoercionTest(unittest.TestCase): def __cmp__(slf, other): self.assert_(other == 42, 'expected evil_coercer, got %r' % other) return 0 + __hash__ = None # Invalid cmp makes this unhashable self.assertEquals(cmp(WackyComparer(), evil_coercer), 0) # ...and classic classes too, since that code path is a little different class ClassicWackyComparer: |