test_role.py: use string.printable instead of lowercase (fixes Python 3.x)
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -21,7 +21,7 @@ from kappa.role import Role | ... | @@ -21,7 +21,7 @@ from kappa.role import Role |
21 | 21 | ||
22 | 22 | ||
23 | def randomword(length): | 23 | def randomword(length): |
24 | - return ''.join(random.choice(string.lowercase) for i in range(length)) | 24 | + return ''.join(random.choice(string.printable) for i in range(length)) |
25 | 25 | ||
26 | 26 | ||
27 | class TestRole(unittest.TestCase): | 27 | class TestRole(unittest.TestCase): | ... | ... |
-
Please register or login to post a comment