[issue10848] Move test.regrtest from getopt to argparse
R. David Murray
report at bugs.python.org
Tue Jan 25 23:54:34 CET 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
I would say writing tests for regrtest is going to be a somewhat tricky task. I think you will have to do some code tweaking to even be able to run certain tests. I believe that regrtest currently has some built in assumptions about the test directory (ie: that it is Lib/test), even though the regrtest main program provides a testdir argument. So the first task is probably going to be getting that argument to actually work, and then exposing a way to set it at the regrtest command level (or, alternatively, moving all command functionality out of __main__ and into main). Once you have that, your test suite can programatically generate a test test-directory and populate it with whatever files you need for each test, using the utilities in test.script_helper.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10848>
_______________________________________
More information about the Python-bugs-list
mailing list