changeset: 97291:40c391d12741
branch: 3.5
parent: 97289:e4cb64628673
user: Yury Selivanov
date: Wed Aug 05 17:59:45 2015 -0400
files: Lib/test/test_parser.py
description:
Issue #24791: More tests in test_parser
diff -r e4cb64628673 -r 40c391d12741 Lib/test/test_parser.py
--- a/Lib/test/test_parser.py Wed Aug 05 17:54:10 2015 -0400
+++ b/Lib/test/test_parser.py Wed Aug 05 17:59:45 2015 -0400
@@ -350,9 +350,11 @@
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}')