summaryrefslogtreecommitdiffstats
path: root/tests/APIExerciser.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-09 23:24:08 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-09 23:24:08 +0200
commita677c082aeabba00a079db581bfae194d069cf11 (patch)
tree5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /tests/APIExerciser.py
parentRemove old .pot files (diff)
downloadpyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'tests/APIExerciser.py')
-rw-r--r--tests/APIExerciser.py5
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