homepage

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

AltStyle によって変換されたページ (->オリジナル) /