Skip to content

Commit 72f73d5

Browse files
committed
Update dict clear tests
1 parent c728478 commit 72f73d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/test-data/run-dicts.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ assert get_content_set(od) == ({1, 3}, {2, 4}, {(1, 2), (3, 4)})
9595
d = {'a': 1, 'b': 2}
9696
d.clear()
9797
assert d == {}
98+
d = defaultdict(int)
99+
d.clear()
100+
assert d == {}
98101
[typing fixtures/typing-full.pyi]
99102

100103
[case testDictIterationMethodsRun]

0 commit comments

Comments
 (0)