summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-05 22:00:11 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-05 22:00:11 (GMT)
commit6f8bcec616a5780246ce1591248d745dcf3ab935 (patch)
treedc30743eb0cc435c2b233ca0b211918571432d0f
parentdca249b17c3db2327a89d683f1059b7ed787417e (diff)
parent50a26147869618925abd6e1709e44bd9ed77fa8f (diff)
downloadcpython-6f8bcec616a5780246ce1591248d745dcf3ab935.zip
cpython-6f8bcec616a5780246ce1591248d745dcf3ab935.tar.gz
cpython-6f8bcec616a5780246ce1591248d745dcf3ab935.tar.bz2
Merge 3.5 (issue #24791; more tests in test_parser)
-rw-r--r--Lib/test/test_parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 7082273..3d301b4 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -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}')