diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-07-27 18:52:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 18:52:32 +0100 |
commit | b977f8510e2ff4f11e3bda920722098a242fc8cc (patch) | |
tree | 2e482298654ce04f9a484606f75ee6b63ba7ea2c /Lib/test/test_syntax.py | |
parent | be2415487ab80e4bd5ace2954651e78b107b17e4 (diff) | |
download | cpython-git-b977f8510e2ff4f11e3bda920722098a242fc8cc.tar.gz |
[3.10] bpo-34013: Generalize the invalid legacy statement error message (GH-27389). (GH-27391)
(cherry picked from commit 6948964ecf94e858448dd28eea634317226d2913)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index ad5656bac6..6e1531e8b2 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -1305,7 +1305,7 @@ class SyntaxTestCase(unittest.TestCase): ) def test_curly_brace_after_primary_raises_immediately(self): - self._check_error("f{", "invalid syntax", mode="single") + self._check_error("f{}", "invalid syntax", mode="single") def test_assign_call(self): self._check_error("f() = 1", "assign") |