We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ca857 commit 2d401ccCopy full SHA for 2d401cc
1 file changed
Tests/test_ast.py
@@ -1340,6 +1340,11 @@ def test_literal_eval_cp35572(self):
1340
1341
def test_ipy3_gh686(self):
1342
"""https://github.com/IronLanguages/ironpython3/issues/686"""
1343
+ # check that we can parse invalid starred expression code
1344
+ x = ast.parse("*a")
1345
+ with self.assertRaises(SyntaxError):
1346
+ compile(x, "", "exec")
1347
+
1348
# check that compiling ast.Starred works properly
1349
x = ast.parse("*a, = [1]")
1350
c = compile(x, "", "exec")
0 commit comments