Issue 7893: unittest: have to subclass TextTestRunner to use alternative TestResult
Created on 2010-02-09 17:11 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg99129 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2010-02-09 17:11 | |
A common way to extend unittest is to implement a custom TestResult. Currently you have to subclass TextTestRunner, overriding _makeResult, to get it to use an alternative result class. I suggest adding an additional, optional, argument to TextTestRunner to specify an alternative result class (or callable) that will be used by _makeResult. This will permit the use of custom test result objects without having to subclass. |
|||
| msg99169 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2010-02-10 15:56 | |
Fixed revision 78130. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:57 | admin | set | github: 52141 |
| 2010-02-10 15:56:21 | michael.foord | set | status: open -> closed resolution: accepted messages: + msg99169 stage: needs patch -> resolved |
| 2010-02-09 17:45:59 | brian.curtin | set | nosy:
+ brian.curtin |
| 2010-02-09 17:11:42 | michael.foord | create | |
