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 -
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8911
___
___
Python-bugs-list
Changes by moijes12 moije...@gmail.com:
--
nosy: +moijes12
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8911
___
___
Python-bugs-list mailing
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +cjerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8911
___
___
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
Changes by moijes12 moije...@gmail.com:
--
nosy: -moijes12
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8911
___
___
Python-bugs-list mailing
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?
--
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:
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
Changes by Jerry Seutter jseut...@gmail.com:
--
assignee: - jerry.seutter
nosy: +jerry.seutter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8911
___
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
___
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
12 matches
Mail list logo