Commit a31a3a9f authored by Damien George's avatar Damien George
Browse files

tests/basics: Add test for dict.fromkeys where arg is a generator.

Improves coverage because it tests the case where the arg does not have a
__len__ slot.
parent f8b71aab
......@@ -8,3 +8,6 @@ l = list(d.values())
# argument to fromkeys is a generator
d = dict.fromkeys(i + 1 for i in range(1))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment