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: Add CmdLineTest to standard library
Type: enhancement Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Santiago Castro, terry.reedy
Priority: normal Keywords:

Created on 2017-05-26 18:27 by Santiago Castro, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg294565 - (view) Author: Santiago Castro (Santiago Castro) Date: 2017-05-26 18:27
I see that you use some helpers to test command line utilities (https://hg.python.org/cpython/file/default/Lib/test/test_cmd_line_script.py) that would be useful to Python programmers. Please, consider to add them to the standard library (or somewhere) to reuse them.
msg295059 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-06-02 22:41
Santiago, an idea like this (one that requests a reversal of previous decisions) should be discussed first on the python-ideas list.  Such a discussion would need to result in a specific proposal of what to extract from test_cmd_line_script.py and where to put it.  test_cmd_line_script.py itself cannot be moved.  If you get a positive response there, you can re-open this or open a new issue.

The test utilities in test/ are already 'in' the stdlib, in that one can  import and use them.  However, doing so is at one's own risk of API change.  They are declared private and kept in test/ so that we can freely change them as needed for their primary purpose -- testing cpython.
History
Date User Action Args
2022-04-11 14:58:46adminsetgithub: 74674
2017-06-02 22:41:45terry.reedysetstatus: open -> closed

versions: - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
nosy: + terry.reedy

messages: + msg295059
resolution: rejected
stage: resolved
2017-05-26 18:27:27Santiago Castrocreate