This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unittest.TestProgram.usageExit no longer invoked
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: JelleZijlstra, carlosdamazio, rbcollins
Priority: normal Keywords: easy, patch

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) * (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 (JelleZijlstra) * (Python committer) 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) * (Python committer) 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) * (Python committer) 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:10adminsetgithub: 67048
2022-03-17 02:41:51JelleZijlstrasetstatus: open -> closed
resolution: fixed
messages: + msg415384

stage: patch review -> resolved
2022-03-17 02:41:25JelleZijlstrasetmessages: + msg415383
2022-01-24 04:46:03JelleZijlstrasetnosy: + JelleZijlstra
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