On 5/1/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 5/1/06, John Keyes <[EMAIL PROTECTED]> wrote:
> > On 5/1/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> > > Wouldn't this be an incompatible change? That would make it a no-no.
> >
d handle all of the named
arguments that TestProgram.__init__ supports.
If the list index code can't change, at a minimum the default value
for argv should change from None to sys.argv.
Are the tests for unittest.py?
Thanks,
-John K
>
> On 4/30/06, John Keyes <[EMAIL PROTECTED]>
Hi,
main() in unittest has an optional parameter called argv. If it is not
present in the invocation, it defaults to None. Later in the function
a check is made to see if argv is None and if so sets it to sys.argv.
I think the default should be changed to sys.argv[1:] (i.e. the
command line argu