-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to not-exit on test #47629
Comments
Added an option, called exit, that when set to false, will make the |
This is related to (maybe a duplicate of) bpo-2674. |
Indeed this patch can be considered a fix for bpo-2674, but, it should be |
Added some documentation. |
Added tests. |
Barry, this looks useful and shouldn't be at all disruptive even after |
I'm not sure it's a good idea. When exit=False, don't you lose the It would seem better to add a new method that returned the results |
Well, the results are displayed on stdout like they are if sys.exit is |
I still think a different method would be better for the no-exit |
What about always returning the results. Granted, when sys.exit is run I personally believe that main should not hijack the current interpreter |
Not returning the results is not a problem - if you needed access to the The obvious use case if for running tests from an interactive If you want to collect the results you do it programmatically. I wouldn't be opposed to main() returning the results though, but think |
Patch that adds the same exit functionality, but also stores the result As this functionality has been requested several times my intention is |
Michael, this patch seems to include extra addCleanup() stuff. |
Damn somehow managed to upload the patch to the wrong issue twice in a |
Correct patch this time. If there are no objections I'll apply this in a |
Committed in revision 71291. |
No, make that revision 72191. :-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: