mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix the damage to UserDict and its tests.
Clearly this is not the right way to fix this; UserDict and MixinDict ought to be redesigned with the new dict API in mind. But I'm not claiming to be in charge of library redesign, I only want zero failing tests.
This commit is contained in:
parent
e34cdd1bc1
commit
d81206d152
3 changed files with 17 additions and 18 deletions
|
|
@ -92,7 +92,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
|
|||
# Test keys, items, values
|
||||
self.assertEqual(u2.keys(), d2.keys())
|
||||
self.assertEqual(u2.items(), d2.items())
|
||||
self.assertEqual(u2.values(), d2.values())
|
||||
self.assertEqual(list(u2.values()), list(d2.values()))
|
||||
|
||||
# Test "in".
|
||||
for i in u2.keys():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue