diff options
Diffstat (limited to 'tests/unit/test_utils.py')
| -rw-r--r-- | tests/unit/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 271ec629b..fc30ac33a 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -13,7 +13,7 @@ from tests import SearxTestCase def random_string(length, choices=string.ascii_letters): - return ''.join(random.choice(choices) for _ in range(length)) + return ''.join(random.choices(choices, k=length)) class TestUtils(SearxTestCase): |
