Issue2674
Created on 2008-04-23 13:59 by tuben, last changed 2009-04-07 16:05 by ajaksu2.
|
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) |
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) |
Date: 2009-04-07 16:05 |
|
Closing as issue 3379 has more discussion and patch.
|
|
| Date |
User |
Action |
Args |
| 2009-04-07 16:05:23 | ajaksu2 | set | status: open -> closed
nosy:
+ ajaksu2 messages:
+ msg85724 priority: normal superseder: Option to not-exit on test 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 | |
|