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): ...@@ -30,10 +30,8 @@ class TestThread(threading.Thread):
method. method.
""" """
def __init__(self, test): def __init__(self):
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.test = test
self._fail = None
self._exc_info = None self._exc_info = None
def run(self): def run(self):
...@@ -42,9 +40,6 @@ class TestThread(threading.Thread): ...@@ -42,9 +40,6 @@ class TestThread(threading.Thread):
except: except:
self._exc_info = sys.exc_info() self._exc_info = sys.exc_info()
def fail(self, msg=""):
self._test.fail(msg)
def join(self, timeout=None): def join(self, timeout=None):
threading.Thread.join(self, timeout) threading.Thread.join(self, timeout)
if self._exc_info: if self._exc_info:
...@@ -55,7 +50,7 @@ class ZODBClientThread(TestThread): ...@@ -55,7 +50,7 @@ class ZODBClientThread(TestThread):
__super_init = TestThread.__init__ __super_init = TestThread.__init__
def __init__(self, db, test, commits=10, delay=SHORT_DELAY): def __init__(self, db, test, commits=10, delay=SHORT_DELAY):
self.__super_init(test) self.__super_init()
self.setDaemon(1) self.setDaemon(1)
self.db = db self.db = db
self.test = test self.test = test
...@@ -102,7 +97,7 @@ class StorageClientThread(TestThread): ...@@ -102,7 +97,7 @@ class StorageClientThread(TestThread):
__super_init = TestThread.__init__ __super_init = TestThread.__init__
def __init__(self, storage, test, commits=10, delay=SHORT_DELAY): def __init__(self, storage, test, commits=10, delay=SHORT_DELAY):
self.__super_init(test) self.__super_init()
self.storage = storage self.storage = storage
self.test = test self.test = test
self.commits = commits 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