diff --git a/tests/test_tabu_search.py b/tests/test_tabu_search.py index 7289106..8613c15 100644 --- a/tests/test_tabu_search.py +++ b/tests/test_tabu_search.py @@ -1,5 +1,5 @@ from random import choice, randint, random -from string import lowercase +from string import ascii_lowercase from Solid.TabuSearch import TabuSearch from copy import deepcopy @@ -13,7 +13,7 @@ def _neighborhood(self): neighborhood = [] for _ in range(10): neighbor = deepcopy(member) - neighbor[randint(0,4)] = choice(lowercase) + neighbor[randint(0, 4)] = choice(ascii_lowercase) neighbor = ''.join(neighbor) neighborhood.append(neighbor) return neighborhood