# HG changeset patch # User Pierre-Yves David # Date 1360851683 -3600 # Node ID 40d4ba3589beb5bd79e91c1ade83729fb242a83b # Parent fa1e27a93fb200e2fca5c2bee38376de6ab0b20a devtools: improve qunit timeout message Make the message clearer, shorter and properly wrapped. diff -r fa1e27a93fb2 -r 40d4ba3589be devtools/qunit.py --- a/devtools/qunit.py Thu Feb 14 14:26:33 2013 +0100 +++ b/devtools/qunit.py Thu Feb 14 15:21:23 2013 +0100 @@ -189,11 +189,13 @@ yield InnerTest(test_name, self.fail, msg) except Empty: error = True - yield InnerTest(test_file, raise_exception, RuntimeError, "%s did not report execution end. %i test processed so far." % (test_file, test_count)) - + msg = '%s inactivity timeout (%is). %i test results received' + yield InnerTest(test_file, raise_exception, RuntimeError, + msg % (test_file, timeout, test_count)) browser.stop() if test_count <= 0 and not error: - yield InnerTest(test_name, raise_exception, RuntimeError, 'No test yielded by qunit for %s' % test_file) + yield InnerTest(test_name, raise_exception, RuntimeError, + 'No test yielded by qunit for %s' % test_file) class QUnitResultController(Controller):