summaryrefslogtreecommitdiff
path: root/pylint/test/functional/unbalanced_tuple_unpacking_py30.py
blob: 68f5fb79a55d3602d0fb5e3c36fa3e22659ab373 (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.
"""

__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)