summaryrefslogtreecommitdiff
path: root/tests/functional/u/unbalanced_tuple_unpacking_py30.py
blob: c45cccdd1d052d90963c0cd2500da88e0326d229 (plain)
1
2
3
4
5
6
7
8
9
10
11
""" Test that using starred nodes in unpacking
does not trigger a false positive on Python 3.
"""
# pylint: disable=unused-variable

def test():
    """ Test that starred expressions don't give false positives. """
    first, second, *last = (1, 2, 3, 4)
    one, two, three, *four = (1, 2, 3, 4)
    *last, = (1, 2)
    return (first, second, last)