From 30f3c898edff84aeebe70181dd79703e3ee740bf Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Sun, 5 Mar 2017 09:37:59 +0100 Subject: [PATCH] [tests] Do not use string.lowercase, as Python3 complains about it --- tests/mocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mocks.py b/tests/mocks.py index 62a5700..ee190f6 100644 --- a/tests/mocks.py +++ b/tests/mocks.py @@ -7,10 +7,10 @@ import subprocess from bumblebee.output import Widget -import random, string +import random def rand(cnt): - return "".join(random.choice(string.lowercase) for i in range(cnt)) + return "".join(random.choice("abcdefghijklmnopqrstuvwxyz0123456789") for i in range(cnt)) def mouseEvent(stdin, button, inp, module=None, instance=None): stdin.readline.return_value = json.dumps({