diff options
Diffstat (limited to 'test/option/debug-time.py')
-rw-r--r-- | test/option/debug-time.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/option/debug-time.py b/test/option/debug-time.py index d9ca237..a1e0254 100644 --- a/test/option/debug-time.py +++ b/test/option/debug-time.py @@ -25,7 +25,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import TestSCons -import string import re import time @@ -110,7 +109,7 @@ complete_time = time.time() - start_time expected_total_time = complete_time - overhead pattern = r'Command execution time: (\d+\.\d+) seconds' -times = map(float, re.findall(pattern, test.stdout())) +times = list(map(float, re.findall(pattern, test.stdout()))) expected_command_time = reduce(lambda x, y: x + y, times, 0.0) @@ -153,7 +152,7 @@ outside of the 15%% tolerance. """ % locals()) if failures or warnings: - print string.join([test.stdout()] + failures + warnings, '\n') + print '\n'.join([test.stdout()] + failures + warnings) if failures: test.fail_test(1) @@ -190,7 +189,7 @@ outside of the 1%% tolerance. """ % locals()) if failures: - print string.join([test.stdout()] + failures, '\n') + print '\n'.join([test.stdout()] + failures) test.fail_test(1) test.run(arguments = "-j4 --debug=time . SLEEP=1") |