[javascriptlint-commit] SF.net SVN: javascriptlint: [171] trunk/test.py
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2008-03-20 20:57:35
|
Revision: 171 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=171&view=rev Author: matthiasmiller Date: 2008-03-20 13:57:33 -0700 (Thu, 20 Mar 2008) Log Message: ----------- tests: improve test result output Modified Paths: -------------- trunk/test.py Modified: trunk/test.py =================================================================== --- trunk/test.py 2008-03-20 20:53:24 UTC (rev 170) +++ trunk/test.py 2008-03-20 20:57:33 UTC (rev 171) @@ -54,9 +54,13 @@ errors = [] if expected_warnings: - errors.append('Expected warnings: ' + str(expected_warnings)) + errors.append('Expected warnings:') + for line, warning in expected_warnings: + errors.append('\tline %i: %s' % (line+1, warning)) if unexpected_warnings: - errors.append('Unexpected warnings: ' + str(unexpected_warnings)) + errors.append('Unexpected warnings:') + for line, warning in unexpected_warnings: + errors.append('\tline %i: %s' % (line+1, warning)) if errors: raise TestError, '\n'.join(errors) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |