Skip to content

Commit

Permalink
Update on "[dynamo] support dict.copy() / OrderedDict.copy() / `d…
Browse files Browse the repository at this point in the history
…efaultdict.copy()`"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
  • Loading branch information
XuehaiPan committed Dec 3, 2023
2 parents 6094bc8 + db2b3b4 commit 78a97a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/dynamo/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,10 @@ def test_call_dict5(x):
@make_test
def test_dict_fromkeys(x, y):
lst = ["a", "b"]
d1 = dict.fromkeys(lst)
d2 = collections.defaultdict.fromkeys(iter(d1), x)
d3 = collections.OrderedDict.fromkeys(d2, value=y)
d = dict.fromkeys(lst)
d1 = dict.fromkeys(d, x + 1)
d2 = collections.defaultdict.fromkeys(iter(d1), x - 2)
d3 = collections.OrderedDict.fromkeys(tuple(lst), value=y)
return d1["a"] * d2["b"] + d2["a"] + d1["b"] + d3["a"] + d3["b"] + 1

@make_test
Expand Down

0 comments on commit 78a97a8

Please sign in to comment.