From f6f1ab0dc37c291cacb3ff225cac2b009feaf691 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 14 Oct 2009 22:19:15 -0700 Subject: [PATCH] New test for #409 --- tests/bugs.txt | 1 + tests/run/extended_unpacking_T409.pyx | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/run/extended_unpacking_T409.pyx 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 -- 2.26.2