Issue 22859: unittest.TestProgram.usageExit no longer invoked (original ) (raw )Created on 2014-11-13 10:25 by rbcollins , last changed 2022-04-11 14:58 by admin . This issue is now closed .
Pull Requests
URL
Status
Linked
Edit
PR 30293
merged
dmzz,2021-12-29 19:34
Messages (5)
msg231102 - (view)
Author: Robert Collins (rbcollins) *
Date: 2014-11-13 10:25
Before the argparse migration usageExit was invoked and could be extended via subclasses, but it no longer is. We could delete it (and document it being no longer accessible) or put some glue in to reinstate it. I think deleting it is fine, as long as we make the argparse parser objects part of the API (so that folk have a reliable place to poke at to change help).
msg409324 - (view)
Author: Carlos Damazio (carlosdamazio) *
Date: 2021-12-29 19:40
Well, to this issue, I'm going to put a PR to remove it and give it a chance for it to being reinstated if you folks want to.
msg411442 - (view)
Author: Jelle Zijlstra (JelleZijlstra) *
Date: 2022-01-24 04:46
I suggest we mark the method as deprecated and remove it in 3.13. Making the argparse objects public can be done in a separate enhancement request if there is demand for it.
msg415383 - (view)
Author: Jelle Zijlstra (JelleZijlstra) *
Date: 2022-03-17 02:41
New changeset 7c353b7594545fb9403b3123a17ad06cadc2f73d by Carlos Damazio in branch 'main': bpo-22859 : deprecate unittest.main.TestProgram.usageExit (GH-30293 ) https://github.com/python/cpython/commit/7c353b7594545fb9403b3123a17ad06cadc2f73d
msg415384 - (view)
Author: Jelle Zijlstra (JelleZijlstra) *
Date: 2022-03-17 02:41
It is now marked deprecated, to be removed in 3.13.
History
Date
User
Action
Args
2022-04-11 14:58:10
admin
set
github: 67048
2022-03-17 02:41:51
JelleZijlstra
set
status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2022-03-17 02:41:25
JelleZijlstra
set
messages: +
2022-01-24 04:46:03
JelleZijlstra
set
nosy: + JelleZijlstra messages: +
2021-12-29 19:40:51
carlosdamazio
set
nosy: + carlosdamazio , - dmzz messages: +
2021-12-29 19:34:55
dmzz
set
keywords: + patch nosy: + dmzz pull_requests: + <pull%5Frequest28507>stage: patch review
2021-11-30 00:02:53
iritkatriel
set
keywords: + easy versions: + Python 3.11, - Python 3.5
2014-11-13 10:25:31
rbcollins
set
type: behaviorcomponents: + Library (Lib)versions: + Python 3.5
2014-11-13 10:25:22
rbcollins
create