Skip to content

Commit 642cb3e

Browse files
committed
Fix tests on Python 2.7 and 3.5
1 parent b461132 commit 642cb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def token_hex(nbytes=None): # type: (Optional[int]) -> str
1919
size = nbytes * 2 if nbytes is not None else 64
20-
return "".join(random.choices(string.hexdigits, k=size)).lower()
20+
return "".join(random.choice(string.hexdigits) for i in range(size)).lower()
2121

2222

2323
log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)