summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2013-09-23 17:05:36 -0400
committerSimon Charette <charette.s@gmail.com>2013-09-23 17:05:36 -0400
commitab643cd63402ef8ed4776faebc0ed4f00b933e1d (patch)
treeb512c89fc9ed20161f425a6c27aa2894d84c8761
parent4ec6d281cdc67bee1c7ac272272ae500b600fe49 (diff)
Fixed test suite bisection on Python 3.
Thanks to @marfire for spotting this.
-rwxr-xr-xtests/runtests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 7f502299fa..cf413473c8 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python
+from __future__ import division
+
import logging
import os
import shutil
@@ -247,7 +249,7 @@ def bisect_tests(bisection_label, options, test_labels):
iteration = 1
while len(test_labels) > 1:
- midpoint = len(test_labels)/2
+ midpoint = len(test_labels) // 2
test_labels_a = test_labels[:midpoint] + [bisection_label]
test_labels_b = test_labels[midpoint:] + [bisection_label]
print('***** Pass %da: Running the first half of the test suite' % iteration)