mirror of
https://github.com/django/django.git
synced 2025-07-22 20:55:17 +00:00
Fixed test suite bisection on Python 3.
Thanks to @marfire for spotting this.
This commit is contained in:
parent
4ec6d281cd
commit
ab643cd634
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue