[issue8911] regrtest.main should have a test skipping argument
Ezio Melotti added the comment: I tried to grep for sys.argv in the importlib tests and didn't find anything. 3 years passed since the initial report, and since no one seem to have asked for this feature, I'm going to close this. -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Chris Jerdonek added the comment: If you look at importlib.regrtest you will notice it has to muck with sys.argv in order to get certain tests skipped. This is reminiscent of issue 15132 which I filed, but for unittest.TestProgram() rather than regrtest.main(). 6. Switch regrtest.py to use argparse instead of optparse. By the way, there is a patch for this from a couple months ago at issue 15302. It is waiting to be reviewed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Jerry Seutter jseut...@gmail.com added the comment: Hi Tarsis, I looked at your patch. It looks like it only does step 1 and doesn't move away from parse_command_line directly modifying sys.argv. Was this the patch file that you intended to upload? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Tarsis Azevedo tarsis.azev...@gmail.com added the comment: Hi all, I followed from 1 to 5 steps of jerry's comment and removed a recursive import I didnt get it. The patch is attached. -- keywords: +patch nosy: +Tarsis.Azevedo Added file: http://bugs.python.org/file19697/issue8911.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Jerry Seutter jseut...@gmail.com added the comment: Hi Brett (and others) I'm thinking of making the following changes: 1. In Lib/test/regrtest.py, move command line parsing out of main() into a function called parse_command_line() 2. parse_command_line() will parse command line settings and store them in a dictionary that can be passed in as **kwargs to main(). 3. The exclude parameter that main takes in will be modified to take a list. This list contains a list of tests to be skipped. 4. Update importlib/test/regrtest.py to call main() without doing sys.argv[] hacking. 5. The command line interface will remain unchanged. If regrtest.py is called without the --exclude flag, the tests supplied on the command line will be interpreted as the tests to run. If --exclude is supplied, the tests on the command line will be interpreted as the tests to _not_ run. 6. Switch regrtest.py to use argparse instead of optparse. Do these look reasonable? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by Jerry Seutter jseut...@gmail.com: -- assignee: - jerry.seutter nosy: +jerry.seutter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, flox stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8911] regrtest.main should have a test skipping argument
New submission from Brett Cannon br...@python.org: If you look at importlib.regrtest you will notice it has to muck with sys.argv in order to get certain tests skipped. It would be much better if regrtest.main had an argument you could specify instead which listed the tests to skip. This might lead to breaking out the command line parsing into the __main__ block at the end of the file instead of having it all in regrtest.main. -- components: Tests keywords: easy messages: 107177 nosy: brett.cannon priority: low severity: normal status: open title: regrtest.main should have a test skipping argument versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com