[New-bugs-announce] [issue39283] Add ability to inherit unittest arguement parser
Ajay Tripathi
report at bugs.python.org
Thu Jan 9 23:32:18 EST 2020
New submission from Ajay Tripathi <ajay39in at 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 <report at bugs.python.org>
<https://bugs.python.org/issue39283>
_______________________________________
More information about the New-bugs-announce
mailing list