From: Robert Bradshaw Date: Thu, 15 Oct 2009 05:19:15 +0000 (-0700) Subject: New test for #409 X-Git-Tag: 0.13.beta0~2^2~121^2~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6f1ab0dc37c291cacb3ff225cac2b009feaf691;p=cython.git New test for #409 --- diff --git a/tests/bugs.txt b/tests/bugs.txt index b4f0de4a..cc378c00 100644 --- a/tests/bugs.txt +++ b/tests/bugs.txt @@ -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 index 00000000..a58b84d4 --- /dev/null +++ b/tests/run/extended_unpacking_T409.pyx @@ -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