Title: unittest.TestProgram.usageExit no longer invoked
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Jelle Zijlstra, carlosdamazio, rbcollins
Priority: normal Keywords: easy, patch

Created on 2014-11-13 10:25 by rbcollins, last changed 2022-01-24 04:46 by Jelle Zijlstra.

Pull Requests
URL Status Linked Edit
PR 30293 open dmzz, 2021-12-29 19:34
Messages (3)
msg231102 - (view) Author: Robert Collins (rbcollins) * (Python committer) 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 (Jelle Zijlstra) * (Python triager) 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.
Date User Action Args
2022-01-24 04:46:03Jelle Zijlstrasetnosy: + Jelle Zijlstra
messages: + msg411442
2021-12-29 19:40:51carlosdamaziosetnosy: + carlosdamazio, - dmzz
messages: + msg409324
2021-12-29 19:34:55dmzzsetkeywords: + patch
nosy: + dmzz

pull_requests: + pull_request28507
stage: patch review
2021-11-30 00:02:53iritkatrielsetkeywords: + easy
versions: + Python 3.11, - Python 3.5
2014-11-13 10:25:31rbcollinssettype: behavior
components: + Library (Lib)
versions: + Python 3.5
2014-11-13 10:25:22rbcollinscreate