This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregmalcolm
Recipients gregmalcolm, r.david.murray
Date 2010-08-15.05:15:35
SpamBayes Score 8.116617e-09
Marked as misclassified No
Message-id <1281849348.53.0.810648733764.issue9607@psf.upfronthosting.co.za>
In-reply-to
Content
'keyword.py' didn't have any tests, so I wrote some.

Most of the tests are are for the main() method, which self-populates the keywords section of keyword.py with keywords taken from a grammar file, 'Python/graminit.c'. The main() method allows you to choose the grammar file and the target file, so I've written the tests such that the actual keyword.py does not have to modify itself.

Most of the tests generate dummy keyword.py and graminit.c files for parsing. They are all deleted in the tearUp() stages of each test.

I've timed the tests. In total they take approximately 3 seconds so you may want to tag some of them as "slow". Also I've only tested on the mac, so someone may want to check it runs ok on Windows.

Most of the patch was written at the PyOhio 2010 Sprints. Thanks go to David Murray for advice given while working on it.
History
Date User Action Args
2010-08-15 05:15:49gregmalcolmsetrecipients: + gregmalcolm, r.david.murray
2010-08-15 05:15:48gregmalcolmsetmessageid: <1281849348.53.0.810648733764.issue9607@psf.upfronthosting.co.za>
2010-08-15 05:15:44gregmalcolmlinkissue9607 messages
2010-08-15 05:15:40gregmalcolmcreate