summaryrefslogtreecommitdiff
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-01-04 10:36:35 +0200
committerGitHub <noreply@github.com>2018-01-04 10:36:35 +0200
commit0cc99c8cd70d422e4b345837a907db30e9180ab9 (patch)
tree57959fceeec6bcb4b14a06bd243140dfa94e732f /Lib/test/test_syntax.py
parent811b2878dfc68dc3ecd81fb4b370c6e1f9ec69c2 (diff)
downloadcpython-git-0cc99c8cd70d422e4b345837a907db30e9180ab9.tar.gz
bpo-32482: Fix suspicious code in tests for syntax and grammar. (#5086)
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index e161f56d30..2b96a94401 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -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")