diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-07-01 19:34:52 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-07-01 19:34:52 +0000 |
commit | 175e4d96631cad3e3ca230d97d51374b00d9e973 (patch) | |
tree | b3118ec2d106a23aff7c4e932d9d35c402e7b228 /Lib/test/test_syntax.py | |
parent | 1f40c8a8d70ea8789c3ffca126e0d3cce41d0f7d (diff) | |
download | cpython-git-175e4d96631cad3e3ca230d97d51374b00d9e973.tar.gz |
#3219 repeated keyword arguments aren't allowed in function calls anymore
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index d0433034db..6e60706ac3 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -417,6 +417,11 @@ leading to spurious errors. ... SyntaxError: can't assign to function call (<doctest test.test_syntax[48]>, line 6) +>>> f(a=23, a=234) +Traceback (most recent call last): + ... +SyntaxError: keyword argument repeated (<doctest test.test_syntax[49]>, line 1) + """ import re |