diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-01-04 10:36:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 10:36:35 +0200 |
commit | 0cc99c8cd70d422e4b345837a907db30e9180ab9 (patch) | |
tree | 57959fceeec6bcb4b14a06bd243140dfa94e732f /Lib/test/test_syntax.py | |
parent | 811b2878dfc68dc3ecd81fb4b370c6e1f9ec69c2 (diff) | |
download | cpython-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.py | 4 |
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") |