mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Adds support for the DBEnv->set_timeout() method.
This commit is contained in:
parent
3ae0f7a7cf
commit
fe11d3e0d4
2 changed files with 33 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue