mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
Fix the test so it uses IterableUserDict for the "for x in dict" test.
This commit is contained in:
parent
2050b65e84
commit
288cd2cb69
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Check every path through every method of UserDict
|
# Check every path through every method of UserDict
|
||||||
|
|
||||||
from test_support import verify, verbose
|
from test_support import verify, verbose
|
||||||
from UserDict import UserDict
|
from UserDict import UserDict, IterableUserDict
|
||||||
|
|
||||||
d0 = {}
|
d0 = {}
|
||||||
d1 = {"one": 1}
|
d1 = {"one": 1}
|
||||||
|
@ -12,7 +12,7 @@ d2 = {"one": 1, "two": 2}
|
||||||
u = UserDict()
|
u = UserDict()
|
||||||
u0 = UserDict(d0)
|
u0 = UserDict(d0)
|
||||||
u1 = UserDict(d1)
|
u1 = UserDict(d1)
|
||||||
u2 = UserDict(d2)
|
u2 = IterableUserDict(d2)
|
||||||
|
|
||||||
uu = UserDict(u)
|
uu = UserDict(u)
|
||||||
uu0 = UserDict(u0)
|
uu0 = UserDict(u0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue