mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
bpo-43797: Improve syntax error for invalid comparisons (#25317)
* bpo-43797: Improve syntax error for invalid comparisons * Update Lib/test/test_fstring.py Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> * Apply review comments * can't -> cannot Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
This commit is contained in:
parent
2459b92a4d
commit
b86ed8e3bb
12 changed files with 1375 additions and 779 deletions
|
@ -260,7 +260,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
check('[*x for x in xs]', 1, 2)
|
||||
check('foo(x for x in range(10), 100)', 1, 5)
|
||||
check('for 1 in []: pass', 1, 5)
|
||||
check('(yield i) = 2', 1, 2)
|
||||
check('(yield i) = 2', 1, 11)
|
||||
check('def f(*):\n pass', 1, 8)
|
||||
|
||||
@cpython_only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue