[Python-checkins] cpython (merge 3.5 -> default): Merge 3.5 (issue #24791; more tests in test_parser)

yury.selivanov python-checkins at python.org
Thu Aug 6 00:00:38 CEST 2015


https://hg.python.org/cpython/rev/a572137b4f05
changeset: 97292:a572137b4f05
parent: 97290:4c89dd5199e5
parent: 97291:40c391d12741
user: Yury Selivanov <yselivanov at sprymix.com>
date: Wed Aug 05 18:00:11 2015 -0400
summary:
 Merge 3.5 (issue #24791; more tests in test_parser)
files:
 Lib/test/test_parser.py | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -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}')
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /