patch [ 1141428 ] more __contains__ tests

This commit is contained in:
Georg Brandl 2005-08-24 09:08:57 +00:00
parent 52715f69e7
commit be3856dcd4
2 changed files with 29 additions and 2 deletions

View file

@ -259,8 +259,8 @@ class DictTest(unittest.TestCase):
def test_dicts(self):
# Verify that __eq__ and __ne__ work for dicts even if the keys and
# values don't support anything other than __eq__ and __ne__. Complex
# numbers are a fine example of that.
# values don't support anything other than __eq__ and __ne__ (and
# __hash__). Complex numbers are a fine example of that.
import random
imag1a = {}
for i in range(50):