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.
Created on 2008年04月23日 13:59 by tuben, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg65698 - (view) | Author: Johan Tufvesson (tuben) | Date: 2008年04月23日 13:59 | |
The class TestProgram (and its synonym "main") in module unittest is (probably) meant to be an easy way to use the functionality of the module unittest. It is very surprising (and error-prone) that it uses sys.exit() with a status code instead of making a return with the same status code. Clean-up actions after the call to unittest.main() are not executed. |
|||
| msg69530 - (view) | Author: Facundo Batista (facundobatista) * (Python committer) | Date: 2008年07月11日 02:55 | |
That class is normally used at the end of the testing suite, as is recommended in the documentation. In any case, I don't see that like a bug, so we shouldn't be changing that behaviour, because of compatibility. What do you think? Maybe the documentation should be more explicit about this? Thanks! |
|||
| msg69946 - (view) | Author: J. Pablo Fernández (pupeno) | Date: 2008年07月18日 09:37 | |
I was bothered by this 'bug' ages ago, and I was work-arounding it. So now I've spent some time in 'fixing' it with the patches on issue #3379. |
|||
| msg85724 - (view) | Author: Daniel Diniz (ajaksu2) * (Python triager) | Date: 2009年04月07日 16:05 | |
Closing as issue 3379 has more discussion and patch. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:33 | admin | set | github: 46926 |
| 2009年04月07日 16:05:23 | ajaksu2 | set | status: open -> closed priority: normal superseder: Option to not-exit on test nosy: + ajaksu2 messages: + msg85724 resolution: duplicate |
| 2008年07月18日 09:37:11 | pupeno | set | nosy:
+ pupeno messages: + msg69946 |
| 2008年07月11日 02:55:26 | facundobatista | set | nosy:
+ facundobatista messages: + msg69530 |
| 2008年04月23日 13:59:46 | tuben | create | |