summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-04-20 06:00:36 (GMT)
committerSteven Knight <knight@baldmt.com>2010-04-20 06:00:36 (GMT)
commit8a3e19c85c853ad7ee45b45e4afb63a617946145 (patch)
treed3f8269d0e8c1d76786aa3a415ba616b18c5d04e /test
parent7cc7b7c437b79c27354859b1d81f8338a6ce7a2d (diff)
downloadSCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.zip
SCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.tar.gz
SCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.tar.bz2
Rewrite uses of reduce(), which is being deprecated for Python 3.x.
Diffstat (limited to 'test')
-rw-r--r--test/option/debug-time.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/option/debug-time.py b/test/option/debug-time.py
index a1e0254..39a47c1 100644
--- a/test/option/debug-time.py
+++ b/test/option/debug-time.py
@@ -110,7 +110,9 @@ expected_total_time = complete_time - overhead
pattern = r'Command execution time: (\d+\.\d+) seconds'
times = list(map(float, re.findall(pattern, test.stdout())))
-expected_command_time = reduce(lambda x, y: x + y, times, 0.0)
+expected_command_time = 0.0
+for t in times:
+ expected_command_time += t
stdout = test.stdout()