fix bsddb get_name and set_daemon usage

This commit is contained in:
Benjamin Peterson 2008-08-18 19:01:20 +00:00
parent a759f8db24
commit f668214106
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class LockingTestCase(unittest.TestCase):
deadlock_detection.end=False
deadlock_detection.count=0
t=Thread(target=deadlock_detection)
t.set_daemon(True)
t.daemon = True
t.start()
self.env.set_timeout(100000, db.DB_SET_LOCK_TIMEOUT)
anID = self.env.lock_id()
@ -143,7 +143,7 @@ class LockingTestCase(unittest.TestCase):
self.assertTrue(deadlock_detection.count>0)
def theThread(self, sleepTime, lockType):
name = current_thread().get_name()
name = current_thread().name
if lockType == db.DB_LOCK_WRITE:
lt = "write"
else: