summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-12-13 16:46:48 (GMT)
committerGitHub <noreply@github.com>2020-12-13 16:46:48 (GMT)
commit43c4fb6c90c013a00cb820cb61e4990cd8ec7f5e (patch)
tree6486bd0491db555ea6e0e18a1583e2a1098d7e1b /Lib/test/test_exceptions.py
parentda431f789bd1e6b9790f06f9ce47b3ec6a701e65 (diff)
downloadcpython-43c4fb6c90c013a00cb820cb61e4990cd8ec7f5e.zip
cpython-43c4fb6c90c013a00cb820cb61e4990cd8ec7f5e.tar.gz
cpython-43c4fb6c90c013a00cb820cb61e4990cd8ec7f5e.tar.bz2
bpo-30858: Improve error location for expressions with assignments (GH-23753)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 1bdd3f2..e752ab7 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -252,7 +252,7 @@ class ExceptionTests(unittest.TestCase):
check('from __future__ import doesnt_exist', 1, 1)
check('from __future__ import braces', 1, 1)
check('x=1\nfrom __future__ import division', 2, 1)
- check('foo(1=2)', 1, 5)
+ check('foo(1=2)', 1, 6)
check('def f():\n x, y: int', 2, 3)
check('[*x for x in xs]', 1, 2)
check('foo(x for x in range(10), 100)', 1, 5)