[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: test.test_codeop's test_incomplete is incomplete in that it tests several missing-closer single lines, like the above and "[x for x in (", all of which pass, but no corresponding multiple line snippets, like the above. The only multiple line snippets are for

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when ']' is needed -> codeop prematurely raises SyntaxError when closer is needed ___ Python tracker ___