[issue39283] Add ability to inherit unittest arguement parser

Ajay Tripathi report at bugs.python.org
Tue Jan 21 05:12:39 EST 2020


Ajay Tripathi <ajay39in at gmail.com> added the comment:

Hi pual,

> The issue of testing a script that uses argparse has come up on StackOverFlow a number of times.

Sorry for the confusing but this is not a support ticket,
I am not stuck with a problem and I am aware of the variaous solutions on Stackoverflow to use arguements with unittest module.

Instead, I am proposing a change in the module so that the user of unittest can get the `parent_parser` and add their arguements in the unitest argparser instance itself.


I propose this change because it seems like a more intuitive way to use argparser with unittest to me and I hope to hear your thoughts on the change and if it is desired.



Best,
Ajay Tripathi

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39283>
_______________________________________


More information about the Python-bugs-list mailing list