Commit adf443be authored by Tim Peters's avatar Tim Peters

Removed decoys (unused method and instance vars) from class TestThread.

parent 4d8ca6fd
......@@ -30,10 +30,8 @@ class TestThread(threading.Thread):
method.
"""
def __init__(self, test):
def __init__(self):
threading.Thread.__init__(self)
self.test = test
self._fail = None
self._exc_info = None
def run(self):
......@@ -42,9 +40,6 @@ class TestThread(threading.Thread):
except:
self._exc_info = sys.exc_info()
def fail(self, msg=""):
self._test.fail(msg)
def join(self, timeout=None):
threading.Thread.join(self, timeout)
if self._exc_info:
......@@ -55,7 +50,7 @@ class ZODBClientThread(TestThread):
__super_init = TestThread.__init__
def __init__(self, db, test, commits=10, delay=SHORT_DELAY):
self.__super_init(test)
self.__super_init()
self.setDaemon(1)
self.db = db
self.test = test
......@@ -102,7 +97,7 @@ class StorageClientThread(TestThread):
__super_init = TestThread.__init__
def __init__(self, storage, test, commits=10, delay=SHORT_DELAY):
self.__super_init(test)
self.__super_init()
self.storage = storage
self.test = test
self.commits = commits
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment