]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] Add tests for syntax error messages that had no test coverage (GH-153192)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jul 2026 14:20:55 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2026 14:20:55 +0000 (14:20 +0000)
commit84af8f5c5a5f7aee763eb175557765b18a5fd9e5
tree756d4f45791318b9e7a85453555da2ae037a9966
parentd3fbde571aec254523b8e45427be384d902e88dd
[3.15] Add tests for syntax error messages that had no test coverage (GH-153192) (GH-153196)

Add tests for syntax error messages that had no test coverage (GH-153192)

"illegal target for annotation" and "cannot use dict unpacking here"
were not tested at all, and "f-string: expecting '!', or ':', or '}'"
was only tested for its t-string variant.
(cherry picked from commit 836b2069c86e25cf9456e9210bb612e5166d0779)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Lib/test/test_fstring.py
Lib/test/test_syntax.py
Lib/test/test_unpack_ex.py