Syntax error in python unittest script

Peter Otten __peter__ at
Wed Sep 24 21:41:05 CEST 2014

Milson Munakami wrote:

>                 if self.reportStatus_:
>               "=== Test %s completed normally (%d sec)", self.name_, duration

The info() call is missing the closing parenthesis
>         def cleanup(self, success):
>                 sys.excepthook = sys.__excepthook__

> It gives me errror   
> File "", line 44
>     def cleanup(self, success):
>       ^
> SyntaxError: invalid syntax
To find a syntax error it is often a good idea to look into the code that 
precedes the line that the compiler complains about.

More information about the Python-list mailing list