From a677c082aeabba00a079db581bfae194d069cf11 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 9 May 2015 23:24:08 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1406 --- tests/APIExerciser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/APIExerciser.py') 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 -- cgit v1.2.3