[issue39283] Add ability to inherit unittest arguement parser

2020-01-21 Thread Ajay Tripathi
Ajay Tripathi 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 Stackov

[issue39283] Add ability to inherit unittest arguement parser

2020-01-13 Thread Ajay Tripathi
Ajay Tripathi added the comment: Hi, Thanks for your response, here is a code sample of what I am doing right now: ``` import unittest import sys class MyTest(unittest.TestCase): def __init__(self, testName, extraArg): super(MyTest, self).__init__(testName

[issue39283] Add ability to inherit unittest arguement parser

2020-01-09 Thread Ajay Tripathi
New submission from Ajay Tripathi : I am currently writing a unittest script that requires argparser but since the unittest module already has a ArgumentParser instance, I cannot create and use my own ArgumentParser instance. Possible solution: The problem would be solved I could inherit