summaryrefslogtreecommitdiff
path: root/test/input/func_noerror_unbalanced_tuple_unpacking_py30.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/func_noerror_unbalanced_tuple_unpacking_py30.py')
-rw-r--r--test/input/func_noerror_unbalanced_tuple_unpacking_py30.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/input/func_noerror_unbalanced_tuple_unpacking_py30.py b/test/input/func_noerror_unbalanced_tuple_unpacking_py30.py
new file mode 100644
index 0000000..68f5fb7
--- /dev/null
+++ b/test/input/func_noerror_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)