Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed test suite bisection on Python 3.
Thanks to @marfire for spotting this.
  • Loading branch information
charettes committed Sep 23, 2013
1 parent 4ec6d28 commit ab643cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/runtests.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python
from __future__ import division

import logging
import os
import shutil
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ab643cd

Please sign in to comment.