summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2003-03-27 17:23:29 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2003-03-27 17:23:29 (GMT)
commitfe11d3e0d4385400999c89e22ea7bc3542564f47 (patch)
treec3a1d3e5c118b6326da02c15fe81bb1914a3d40f /Lib/bsddb
parent3ae0f7a7cf8c7555a654542811509d4c17b49497 (diff)
downloadcpython-fe11d3e0d4385400999c89e22ea7bc3542564f47.zip
cpython-fe11d3e0d4385400999c89e22ea7bc3542564f47.tar.gz
cpython-fe11d3e0d4385400999c89e22ea7bc3542564f47.tar.bz2
Adds support for the DBEnv->set_timeout() method.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_lock.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py
index af10bea..008f89d 100644
--- a/Lib/bsddb/test/test_lock.py
+++ b/Lib/bsddb/test/test_lock.py
@@ -97,7 +97,13 @@ class LockingTestCase(unittest.TestCase):
for t in threads:
t.join()
-
+ def test03_set_timeout(self):
+ # test that the set_timeout call works
+ if hasattr(self.env, 'set_timeout'):
+ self.env.set_timeout(0, db.DB_SET_LOCK_TIMEOUT)
+ self.env.set_timeout(0, db.DB_SET_TXN_TIMEOUT)
+ self.env.set_timeout(123456, db.DB_SET_LOCK_TIMEOUT)
+ self.env.set_timeout(7890123, db.DB_SET_TXN_TIMEOUT)
def theThread(self, sleepTime, lockType):
name = currentThread().getName()