benjamin.peterson
2008-08-18 19:01:21 UTC
Author: benjamin.peterson
Date: Mon Aug 18 21:01:20 2008
New Revision: 65832
Log:
fix bsddb get_name and set_daemon usage
Modified:
python/branches/py3k/Lib/bsddb/test/test_lock.py
Modified: python/branches/py3k/Lib/bsddb/test/test_lock.py
==============================================================================
--- python/branches/py3k/Lib/bsddb/test/test_lock.py (original)
+++ python/branches/py3k/Lib/bsddb/test/test_lock.py Mon Aug 18 21:01:20 2008
@@ -117,7 +117,7 @@
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 @@
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:
Date: Mon Aug 18 21:01:20 2008
New Revision: 65832
Log:
fix bsddb get_name and set_daemon usage
Modified:
python/branches/py3k/Lib/bsddb/test/test_lock.py
Modified: python/branches/py3k/Lib/bsddb/test/test_lock.py
==============================================================================
--- python/branches/py3k/Lib/bsddb/test/test_lock.py (original)
+++ python/branches/py3k/Lib/bsddb/test/test_lock.py Mon Aug 18 21:01:20 2008
@@ -117,7 +117,7 @@
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 @@
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: