diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-01-04 09:32:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-01-04 09:32:53 (GMT) |
commit | a70d5ff992e5e123a3fa6f0e7f672026db8ed1f7 (patch) | |
tree | 0bbdfa130b3f1f0e151c9655909ad913b1ed8d05 /Lib/test/test_syntax.py | |
parent | 1e6d8525f9dd3dcdc83adb93b164082c8b95d17a (diff) | |
download | cpython-a70d5ff992e5e123a3fa6f0e7f672026db8ed1f7.zip cpython-a70d5ff992e5e123a3fa6f0e7f672026db8ed1f7.tar.gz cpython-a70d5ff992e5e123a3fa6f0e7f672026db8ed1f7.tar.bz2 |
bpo-32482: Fix suspicious code in tests for syntax and grammar. (GH-5086) (#5095)
(cherry picked from commit 0cc99c8cd70d422e4b345837a907db30e9180ab9)
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 b7095a2..26f5083 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -600,12 +600,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") |