summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 19:01:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 19:01:20 (GMT)
commitf6682141062efcfe2949cf876d48e61175a041a9 (patch)
tree95a1fb8c31637f76729cff218e608c108d266810
parenta759f8db240509a51c7b255abde34d2091ab23e9 (diff)
downloadcpython-f6682141062efcfe2949cf876d48e61175a041a9.zip
cpython-f6682141062efcfe2949cf876d48e61175a041a9.tar.gz
cpython-f6682141062efcfe2949cf876d48e61175a041a9.tar.bz2
fix bsddb get_name and set_daemon usage
-rw-r--r--Lib/bsddb/test/test_lock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py
index 0467d83..99adb7e 100644
--- a/Lib/bsddb/test/test_lock.py
+++ b/Lib/bsddb/test/test_lock.py
@@ -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: