Issue 14695: Tools/parser/unparse.py is out of date. (original) (raw)

Created on 2012-04-29 19:44 by mark.dickinson, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unparse.patch mark.dickinson,2012-04-29 19:44 review
test_unparse_in_test_tools.patch mark.dickinson,2012-05-06 17:10 review
Messages (8)
msg159645 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-04-29 19:44
Here's a patch that makes all tests in Tools/parser/test_unparse.py pass on the default branch. (The 'yield from' bits would have to be removed for 3.2.)
msg159976 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-05-05 01:41
There is a test_tools file now. test_unparse could be called from it.
msg160095 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-05-06 16:36
Ah, that's good to know. I think I'll commit the fix and then look into hooking test_unparse into test_tools. For 3.2, it turns out that all that's missing is support for Starred.
msg160096 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-05-06 16:38
Committed in revision c80576303892 (3.2), revision 89e928048903 (default). (I put 14965 instead of 14695 in the commit messages by mistake.)
msg160097 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-05-06 17:10
David: Any suggestions for how best to integrate test_unparse.py into test_tools? We could move the contents of test_unparse.py directly in test_tools.py and just kill the old test_unparse.py. Alternatively, we could import those TestCase subclasses from test_unparse; is there a better way of doing this than temporarily hacking sys.path to add the Tools/parser directory, as in the attached patch?
msg160100 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-05-06 17:39
Since we are already doing path hackery in that test file to get things to run, I think your patch would be fine. If we grow more tests for the stuff in Tools (which would be good), we might want to consider reorganizing things, but for now I think that the simplest thing that works is good.
msg160123 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-07 09:27
New changeset f9344a3eaaa6 by Mark Dickinson in branch 'default': Issue #14695: Run Tools/parser/test_unparse.py as part of test_tools. http://hg.python.org/cpython/rev/f9344a3eaaa6
msg160124 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-05-07 09:27
Thanks, David!
History
Date User Action Args
2022-04-11 14:57:29 admin set github: 58900
2012-05-07 10:08:23 mark.dickinson set assignee: mark.dickinson
2012-05-07 09:27:57 mark.dickinson set status: open -> closedresolution: fixedmessages: +
2012-05-07 09:27:31 python-dev set nosy: + python-devmessages: +
2012-05-06 17:39:07 r.david.murray set messages: +
2012-05-06 17:10:05 mark.dickinson set files: + test_unparse_in_test_tools.patchmessages: +
2012-05-06 16:38:33 mark.dickinson set messages: +
2012-05-06 16:36:04 mark.dickinson set messages: +
2012-05-05 01:41:04 r.david.murray set nosy: + r.david.murraymessages: +
2012-04-29 19:44:33 mark.dickinson create