From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:43:31 +0000 (+0200) Subject: [3.12] gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context... X-Git-Tag: v3.12.7~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f5d18d351b7a6adea48f66f0d1248b5de3d150c;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context (GH-119222) (GH-119264) Add test coverage for "starred kind" in _PyPegen_set_expr_context (cherry picked from commit 8231a24454c854ea22590fd74733d29e4274122d) Co-authored-by: Mark Jason Dominus (陶敏修) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- diff --git a/Lib/test/test_unpack_ex.py b/Lib/test/test_unpack_ex.py index c201d08f61b8..9e2d54bd3a8c 100644 --- a/Lib/test/test_unpack_ex.py +++ b/Lib/test/test_unpack_ex.py @@ -26,6 +26,12 @@ Unpack implied tuple >>> a == [7, 8, 9] True +Unpack nested implied tuple + + >>> [*[*a]] = [[7,8,9]] + >>> a == [[7,8,9]] + True + Unpack string... fun! >>> a, *b = 'one'