New submission from Ajay Tripathi <ajay3...@gmail.com>:

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 the parent ArgumentParser instance 
created here:
https://github.com/python/cpython/blob/master/Lib/unittest/main.py#L162

Please let me know if it's feasible / acceptable to change `parent_parser` as 
`self.parent_parent` for inheritance.

I would love to create a pull request for it.

----------
components: Library (Lib)
messages: 359704
nosy: atb00ker
priority: normal
severity: normal
status: open
title: Add ability to inherit unittest arguement parser
type: behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39283>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to