mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #24791: More tests in test_parser
This commit is contained in:
parent
14acf5f41d
commit
50a2614786
1 changed files with 2 additions and 0 deletions
|
@ -350,9 +350,11 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
|
|||
self.check_expr('{**{}, 3:4, **{5:6, 7:8}}')
|
||||
|
||||
def test_argument_unpacking(self):
|
||||
self.check_expr("f(*a, **b)")
|
||||
self.check_expr('f(a, *b, *c, *d)')
|
||||
self.check_expr('f(**a, **b)')
|
||||
self.check_expr('f(2, *a, *b, **b, **c, **d)')
|
||||
self.check_expr("f(*b, *() or () and (), **{} and {}, **() or {})")
|
||||
|
||||
def test_set_comprehensions(self):
|
||||
self.check_expr('{x for x in seq}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue