[tests] Do not use string.lowercase, as Python3 complains about it

This commit is contained in:
Tobi-wan Kenobi 2017-03-05 09:37:59 +01:00
parent 8724af2906
commit 30f3c898ed

View file

@ -7,10 +7,10 @@ import subprocess
from bumblebee.output import Widget from bumblebee.output import Widget
import random, string import random
def rand(cnt): 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): def mouseEvent(stdin, button, inp, module=None, instance=None):
stdin.readline.return_value = json.dumps({ stdin.readline.return_value = json.dumps({