mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix #1474677, non-keyword argument following keyword.
This commit is contained in:
parent
02104df4c8
commit
5ef922447c
2 changed files with 8 additions and 0 deletions
|
@ -309,6 +309,9 @@ class SyntaxTestCase(unittest.TestCase):
|
|||
"unindent does not match .* level",
|
||||
subclass=IndentationError)
|
||||
|
||||
def test_kwargs_last(self):
|
||||
self._check_error("int(base=10, '2')", "non-keyword arg")
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(SyntaxTestCase)
|
||||
from test import test_syntax
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue