tests/cpydiff: Add CPy diff-test for using dict.keys() as a set.

See issue #5493.
This commit is contained in:
Damien George 2020-01-06 23:26:00 +11:00
parent 99b8c1a937
commit 4d528bbaa8
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
"""
categories: Types,dict
description: Dictionary keys view does not behave as a set.
cause: Not implemented.
workaround: Explicitly convert keys to a set before using set operations.
"""
print({1:2, 3:4}.keys() & {1})