On Aug 4, 2006, at 9:10 PM, Jorge Vargas wrote: On 8/4/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: I'm not sure what you mean. That except clause up there will only handle ValueErrors. Anything else that comes up will "error" the test. (Not a failure, mind you, but it still wouldn't pass..) You could also use a boolean if you want. got_exception = False try: do_something() except NotImplementedError: got_exception = True assert got_exception Kevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~--- |
- [TurboGears] Re: how to test for exceptions with nose? Kevin Dangoor
- [TurboGears] Re: how to test for exceptions with nos... Jorge Vargas
- [TurboGears] Re: how to test for exceptions with... Jorge Vargas
- [TurboGears] Re: how to test for exceptions with... Michele Cella
- [TurboGears] Re: how to test for exceptions ... Jorge Vargas
- [TurboGears] Re: how to test for exceptions with nos... Alberto Valverde
- [TurboGears] Re: how to test for exceptions with... Jorge Vargas

