diff options
Diffstat (limited to 'tests/functional/u/unbalanced_tuple_unpacking_py30.py')
-rw-r--r-- | tests/functional/u/unbalanced_tuple_unpacking_py30.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/u/unbalanced_tuple_unpacking_py30.py b/tests/functional/u/unbalanced_tuple_unpacking_py30.py new file mode 100644 index 000000000..68f5fb79a --- /dev/null +++ b/tests/functional/u/unbalanced_tuple_unpacking_py30.py @@ -0,0 +1,11 @@ +""" Test that using starred nodes in unpacking +does not trigger a false positive on Python 3. +""" + +__revision__ = 1 + +def test(): + """ Test that starred expressions don't give false positives. """ + first, second, *last = (1, 2, 3, 4) + *last, = (1, 2) + return (first, second, last) |