[Python-checkins] cpython (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/40c391d12741
changeset: 97291:40c391d12741
branch: 3.5
parent: 97289:e4cb64628673
user: Yury Selivanov <yselivanov at sprymix.com>
date: Wed Aug 05 17:59:45 2015 -0400
summary:
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