diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
commit | a677c082aeabba00a079db581bfae194d069cf11 (patch) | |
tree | 5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /tests/APIExerciser.py | |
parent | Remove old .pot files (diff) | |
download | pyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz |
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'tests/APIExerciser.py')
-rw-r--r-- | tests/APIExerciser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/APIExerciser.py b/tests/APIExerciser.py index 9ff37bdc9..25eb666d7 100644 --- a/tests/APIExerciser.py +++ b/tests/APIExerciser.py @@ -6,6 +6,7 @@ from __future__ import with_statement import gc import random import string +import threading import traceback from math import floor @@ -38,12 +39,12 @@ def startApiExerciser(core, n): APIExerciser(core).start() -class APIExerciser(Thread): +class APIExerciser(threading.Thread): def __init__(self, core, thrift=False, user=None, pw=None): global idPool - Thread.__init__(self) + threading.Thread.__init__(self) self.setDaemon(True) self.core = core self.count = 0 #: number of methods |