mirror of
https://github.com/python/cpython.git
synced 2025-10-30 05:01:30 +00:00
Issue #14965: Fix missing support for starred assignments in Tools/parser/unparse.py.
This commit is contained in:
parent
9ab3fdd8cb
commit
1b2e9444fe
3 changed files with 17 additions and 0 deletions
|
|
@ -209,6 +209,13 @@ def test_elifs(self):
|
|||
def test_try_except_finally(self):
|
||||
self.check_roundtrip(try_except_finally)
|
||||
|
||||
def test_starred_assignment(self):
|
||||
self.check_roundtrip("a, *b, c = seq")
|
||||
self.check_roundtrip("a, (*b, c) = seq")
|
||||
self.check_roundtrip("a, *b[0], c = seq")
|
||||
self.check_roundtrip("a, *(b, c) = seq")
|
||||
|
||||
|
||||
class DirectoryTestCase(ASTTestCase):
|
||||
"""Test roundtrip behaviour on all files in Lib and Lib/test."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue