[issue11906] test_argparse failure in interactive mode

Éric Araujo report at bugs.python.org
Fri May 27 19:04:10 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

> Interactive mode is an approved method of running Python code, along
> with batch mode. The core interpreter and stdlib modules should run
> correctly in both modes. So the entire test suite should pass in both
> modes too.
You are right.

> That aside, the doc for test/ does not contain 'recommended' and does
> not discuss running a single test.
Such guidelines belong more in the devguide than the library doc: http://docs.python.org/devguide/runtests

> What I did is the easiest way on Windows.
I cannot argue with you on that :)

> In this case, following Andreas' remark, the bug is in the test, not
> the module, in that it miscalculates the expected output in the
> corner case of a null program name.
Since it’s an easy patch in the test file, +1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11906>
_______________________________________


More information about the Python-bugs-list mailing list