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 hard to extend
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, michael.foord, pitrou, rbcollins
Priority: normal Keywords:

Created on 2014-11-13 10:29 by rbcollins, last changed 2022-04-11 14:58 by admin.

Messages (3)
msg231103 - (view) Author: Robert Collins (rbcollins) * (Python committer) Date: 2014-11-13 10:29
Some users of TestProgram would like to add options (e.g. testtools.run adds --list and --load-list) but there isn't a clean point to add them without bulk copying the implementation around.

We likely need some extra extension points as well - one reasonable test would be to make sure that testtools.run's TestProgram can be made much smaller by whatever patch fixes this bug.
msg231107 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-11-13 12:50
For another example use case:
https://github.com/numba/numba/blob/master/numba/tests/__init__.py#L22
msg231442 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2014-11-20 17:01
TestProgram is an abomination.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67049
2014-11-20 17:01:40michael.foordsetmessages: + msg231442
2014-11-14 21:23:08terry.reedysetnosy: + ezio.melotti, michael.foord
2014-11-13 12:50:56pitrousetmessages: + msg231107
2014-11-13 12:49:56pitrousetnosy: + pitrou
2014-11-13 10:29:51rbcollinscreate