Skip to content

Commit

Permalink
Remove use of past.builtins.xrange
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder authored Jun 17, 2017
1 parent 0dca834 commit 51227c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deap/tests/test_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import unittest
from nose import with_setup
from past.builtins import xrange

from deap import base
from deap import benchmarks
Expand Down Expand Up @@ -31,8 +30,8 @@ def tearDown(self):
def test_bin2float(self):

# Correct evaluation of bin2float.
zero_individual = creator.Individual([0 for x in xrange(10)])
full_individual = creator.Individual([1 for x in xrange(10)])
zero_individual = creator.Individual([0] * 10)
full_individual = creator.Individual([1] * 10)
two_individiual = creator.Individual(8*[0] + [1, 0])
population = [zero_individual, full_individual, two_individiual]
fitnesses = map(self.toolbox.evaluate, population)
Expand Down

0 comments on commit 51227c1

Please sign in to comment.