summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-05 21:59:45 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-05 21:59:45 (GMT)
commit50a26147869618925abd6e1709e44bd9ed77fa8f (patch)
treed29b49fb25d81e227df7663867305feebfe4b5a8 /Lib
parent14acf5f41d2c9b4ec9c0f3219bc9553c31fd9a9f (diff)
downloadcpython-50a26147869618925abd6e1709e44bd9ed77fa8f.zip
cpython-50a26147869618925abd6e1709e44bd9ed77fa8f.tar.gz
cpython-50a26147869618925abd6e1709e44bd9ed77fa8f.tar.bz2
Issue #24791: More tests in test_parser
Diffstat (limited to 'Lib')
-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}')