Syntax error in python unittest script
Peter Otten
__peter__ at web.de
Wed Sep 24 15:41:05 EDT 2014
Milson Munakami wrote:
> if self.reportStatus_:
> self.log.info("=== 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 "TestTest.py", 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