diff options
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 89e9e67895..6a9e5124c6 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -260,6 +260,10 @@ d31v(1) def d32v((x,)): pass d32v((1,)) +# Check ast errors in *args and *kwargs +check_syntax("f(*g(1=2))") +check_syntax("f(**g(1=2))") + ### lambdef: 'lambda' [varargslist] ':' test print 'lambdef' l1 = lambda : 0 |