mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
gh-92671: Don't omit parentheses when unparsing empty tuples (GH-92673)
(cherry picked from commit f6fd8aac13
)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
This commit is contained in:
parent
2ef6a986ee
commit
52e6596fb5
3 changed files with 9 additions and 1 deletions
|
@ -648,6 +648,9 @@ class CosmeticTestCase(ASTTestCase):
|
|||
self.check_src_roundtrip(source.format(target=target))
|
||||
|
||||
def test_star_expr_assign_target_multiple(self):
|
||||
self.check_src_roundtrip("() = []")
|
||||
self.check_src_roundtrip("[] = ()")
|
||||
self.check_src_roundtrip("() = [a] = c, = [d] = e, f = () = g = h")
|
||||
self.check_src_roundtrip("a = b = c = d")
|
||||
self.check_src_roundtrip("a, b = c, d = e, f = g")
|
||||
self.check_src_roundtrip("[a, b] = [c, d] = [e, f] = g")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue