New test for #409
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 05:19:15 +0000 (22:19 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 05:19:15 +0000 (22:19 -0700)
tests/bugs.txt
tests/run/extended_unpacking_T409.pyx [new file with mode: 0644]

index b4f0de4a56b5db1aa43557be0b5d49cc373e182a..cc378c0016a02b8e7ac8781e4ba8152d578a89b1 100644 (file)
@@ -8,3 +8,4 @@ unsignedbehaviour_T184
 funcexc_iter_T228
 bad_c_struct_T252
 missing_baseclass_in_predecl_T262
+extended_unpacking_T409
diff --git a/tests/run/extended_unpacking_T409.pyx b/tests/run/extended_unpacking_T409.pyx
new file mode 100644 (file)
index 0000000..a58b84d
--- /dev/null
@@ -0,0 +1,14 @@
+__doc__ = """
+    >>> simple()
+    (1, 2, [1, 2], [1, 2])
+    >>> extended()
+    (1, (), 2, [1, 2], [1, 2])
+"""
+
+def simple():
+    a, c = d = e = [1,2]
+    return a, c, d, e
+
+def extended():
+    a, *b, c = d = e = [1,2]
+    return a, b, c, d, e