mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
patch [ 1141428 ] more __contains__ tests
This commit is contained in:
parent
52715f69e7
commit
be3856dcd4
2 changed files with 29 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue