Skip to content

Commit

Permalink
Merge pull request #498 from DEAP/fmder-fix-bin2float-errortype
Browse files Browse the repository at this point in the history
[MRG] Fix bin2float errortype in tests
  • Loading branch information
fmder authored Aug 15, 2020
2 parents 6bf1b0d + 29d1a50 commit 38083e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deap/tests/test_benchmarks.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""Test functions from deap/benchmarks."""
import sys
import unittest
from nose import with_setup

from deap import base
from deap import benchmarks
from deap import creator
from deap.benchmarks import binary

Expand Down Expand Up @@ -52,7 +50,7 @@ def test_bin2float(self):
# python3. Thus an error occurs in python2.7 but an assignment is
# correctly executed in python3.
if sys.version_info < (3, ):
with self.assertRaises(TypeError):
with self.assertRaises(AssertionError):
ind.fitness.values = fit
else:
assert wrong_population[0].fitness.values == ()
Expand Down

0 comments on commit 38083e5

Please sign in to comment.