mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32482: Fix suspicious code in tests for syntax and grammar. (#5086)
This commit is contained in:
parent
811b2878df
commit
0cc99c8cd7
2 changed files with 7 additions and 8 deletions
|
@ -668,12 +668,12 @@ class SyntaxTestCase(unittest.TestCase):
|
|||
"positional argument follows keyword argument")
|
||||
|
||||
def test_kwargs_last2(self):
|
||||
self._check_error("int(**{base: 10}, '2')",
|
||||
self._check_error("int(**{'base': 10}, '2')",
|
||||
"positional argument follows "
|
||||
"keyword argument unpacking")
|
||||
|
||||
def test_kwargs_last3(self):
|
||||
self._check_error("int(**{base: 10}, *['2'])",
|
||||
self._check_error("int(**{'base': 10}, *['2'])",
|
||||
"iterable argument unpacking follows "
|
||||
"keyword argument unpacking")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue