summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
authorIvan Levkivskyi <levkivskyi@gmail.com>2019-01-25 01:39:19 (GMT)
committerGitHub <noreply@github.com>2019-01-25 01:39:19 (GMT)
commit62c35a8a8ff5854ed470b1c16a7a14f3bb80368c (patch)
treec9fbcd76316803a7d1272301a64a3c3ea233d2bd /Lib/test/test_parser.py
parent1396d8fab4d0ae830d45f4937322bbb43ce0c30e (diff)
downloadcpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.zip
cpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.tar.gz
cpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.tar.bz2
bpo-35814: Allow same r.h.s. in annotated assignments as in normal ones (GH-11667)
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r--Lib/test/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index ac3899b..19f1782 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -166,7 +166,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
with self.assertRaises(SyntaxError):
exec("x, *y, z: int = range(5)", {}, {})
with self.assertRaises(SyntaxError):
- exec("t: tuple = 1, 2", {}, {})
+ exec("x: int = 1, y = 2", {}, {})
with self.assertRaises(SyntaxError):
exec("u = v: int", {}, {})
with self.assertRaises(SyntaxError):