Skip to content

Commit 2c883c5

Browse files
committed
tests: Fix dict1.py so it doesn't rely on the order of dict elems.
1 parent 00137b8 commit 2c883c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/basics/dict1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
print(d)
77
d = {1:2}
88
d[3] = 3
9-
print(d)
9+
print(len(d), d[1], d[3])
1010
d[1] = 0
11-
print(d)
12-
print(d[1])
11+
print(len(d), d[1], d[3])
12+
print(str(d) == '{1: 0, 3: 3}' or str(d) == '{3: 3, 1: 0}')
1313

1414
x = 1
1515
while x < 100:

0 commit comments

Comments
 (0)