Skip to content

Commit 2bc1a82

Browse files
committed
Update dict copy tests
1 parent 78f3590 commit 2bc1a82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/test-data/run-dicts.test

+4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,14 @@ assert get_content(od) == ([3, 1], [4, 2], [(3, 4), (1, 2)])
9292
assert get_content_set({1: 2}) == ({1}, {2}, {(1, 2)})
9393
assert get_content_set(od) == ({1, 3}, {2, 4}, {(1, 2), (3, 4)})
9494

95+
from collections import defaultdict
9596
d = {}
9697
assert d.copy() == d
9798
d = {'a': 1, 'b': 2}
9899
assert d.copy() == d
100+
assert d.copy() is not d
101+
d = defaultdict(int)
102+
assert d.copy() == d
99103
[typing fixtures/typing-full.pyi]
100104

101105
[case testDictIterationMethodsRun]

0 commit comments

Comments
 (0)