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 vstinner
Recipients Arfrever, berker.peksag, ezio.melotti, jkloth, martin.panter, python-dev, r.david.murray, serhiy.storchaka, vstinner
Date 2015-09-28.17:15:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443460537.82.0.0130143644858.issue25220@psf.upfronthosting.co.za>
In-reply-to
Content
regrtest_class.patch: Convert the long and complex main() function into a new Regrtest class using attributes and methods.

* Convert main() variables to Regrtest attributes: see the __init__() method. I documented some attributes

* Convert accumulate_result() function to a method

* Create setup_python() and setup_regrtest() methods. Maybe both methods should be merged, but for the first change I preferred to keep almost the same instruction order (not move code too much).

* Import gc at top level: the --threshold command line option is now ignored if the gc module is missing.

* Move resource.setrlimit() and the code to make the module paths absolute into the new setup_python() method. So this code is no more executed when the module is imported, only when main() is executed. We have a better on when the setup is done.

* Move textwrap import from printlist() to the top level.

* Some other minor cleanup.
History
Date User Action Args
2015-09-28 17:15:38vstinnersetrecipients: + vstinner, jkloth, ezio.melotti, Arfrever, r.david.murray, python-dev, berker.peksag, martin.panter, serhiy.storchaka
2015-09-28 17:15:37vstinnersetmessageid: <1443460537.82.0.0130143644858.issue25220@psf.upfronthosting.co.za>
2015-09-28 17:15:37vstinnerlinkissue25220 messages
2015-09-28 17:15:37vstinnercreate