Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed test suite bisection on Python 3.

Thanks to @marfire for spotting this.
  • Loading branch information...
commit ab643cd63402ef8ed4776faebc0ed4f00b933e1d 1 parent 4ec6d28
Simon Charette authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  tests/runtests.py
4  tests/runtests.py
... ...
@@ -1,4 +1,6 @@
1 1
 #!/usr/bin/env python
  2
+from __future__ import division
  3
+
2 4
 import logging
3 5
 import os
4 6
 import shutil
@@ -247,7 +249,7 @@ def bisect_tests(bisection_label, options, test_labels):
247 249
 
248 250
     iteration = 1
249 251
     while len(test_labels) > 1:
250  
-        midpoint = len(test_labels)/2
  252
+        midpoint = len(test_labels) // 2
251 253
         test_labels_a = test_labels[:midpoint] + [bisection_label]
252 254
         test_labels_b = test_labels[midpoint:] + [bisection_label]
253 255
         print('***** Pass %da: Running the first half of the test suite' % iteration)

0 notes on commit ab643cd

Please sign in to comment.
Something went wrong with that request. Please try again.