Issue 5733: ignore py3_test_grammar.py syntax error (original) (raw)

Issue5733

Created on 2009-04-10 06:08 by kbk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg85840 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2009-04-10 06:07
Try running it as a script: File "Lib/lib2to3/tests/data/py3_test_grammar.py", line 130 x = ... ^ SyntaxError: invalid syntax Furthermore, testEllipsis seems invalid. What is intended? >>> class C: def __getitem__(self, x): return x >>> c[...] Ellipsis >>> c[. . .] Ellipsis >>> eval(...) SyntaxError: invalid syntax
msg85852 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-11 10:57
I think this file is only meant as a test that 2to3 can parse both 2.x and 3.x syntax, not Python itself.
msg85855 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 13:20
Quite correct.
msg85857 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2009-04-11 13:51
So the error during libinstall should be ignored.... http://docs.python.org/dev/results/make-install.out
msg85866 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 15:59
Oh, indeed. I wonder what the best way to do that is?
msg85871 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 19:31
Should be fixed in r71494.
History
Date User Action Args
2022-04-11 14:56:47 admin set github: 49983
2009-04-11 19:31:14 benjamin.peterson set status: open -> closedresolution: fixedmessages: +
2009-04-11 15:59:54 benjamin.peterson set status: closed -> opentitle: py3_test_grammar.py syntax error -> ignore py3_test_grammar.py syntax errormessages: + assignee: collinwinter -> resolution: not a bug -> (no value)
2009-04-11 13:51:06 kbk set messages: +
2009-04-11 13:20:17 benjamin.peterson set status: pending -> closednosy: + benjamin.petersonmessages: + resolution: wont fix -> not a bug
2009-04-11 10:57:53 georg.brandl set status: open -> pendingnosy: + georg.brandlmessages: + resolution: wont fix
2009-04-10 06:08:17 kbk create