mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.10.x] Fixed #27309 -- Added CallableBool.__hash__().
Backport of 3ab55c1a8a from master
This commit is contained in:
committed by
Tim Graham
parent
67fd51a54f
commit
c473235bf6
@@ -25,3 +25,7 @@ class TestCallableBool(SimpleTestCase):
|
||||
self.assertIs(CallableTrue | False, True)
|
||||
self.assertIs(CallableFalse | True, True)
|
||||
self.assertFalse(CallableFalse | False, False)
|
||||
|
||||
def test_set_membership(self):
|
||||
self.assertIs(CallableTrue in {True}, True)
|
||||
self.assertIs(CallableFalse not in {True}, True)
|
||||
|
||||
Reference in New Issue
Block a user