Skip to content

Commit

Permalink
Fixing an occasional unit test failure reported on the mailing list b…
Browse files Browse the repository at this point in the history
…y Bruce Southey: Commenting out the assertion in DiversitySelectionTest.t_no_retrive_organism, since a 100% random new genome could by chance already be in the population.
  • Loading branch information
peterc committed Nov 17, 2008
1 parent 2e3f9cc commit 7cd353e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/test_GASelection.py
Expand Up @@ -127,7 +127,7 @@ def t_no_retrive_organism(self):
new_pop = [org]

new_org = self.selector._get_new_organism(new_pop, old_pop)
assert new_org != org, "Got organism already in the new population."
#assert new_org != org, "Got organism already in the new population."

class TournamentSelectionTest(AbstractSelectionTest):
"""Test selection based on a tournament style scheme.
Expand Down

0 comments on commit 7cd353e

Please sign in to comment.