[Python-checkins] python/dist/src/Lib/bsddb/test test_lock.py,1.3,1.4

greg@users.sourceforge.net greg@users.sourceforge.net
Thu, 27 Mar 2003 09:23:32 -0800


Update of /cvsroot/python/python/dist/src/Lib/bsddb/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31887/bsddb/test

Modified Files:
	test_lock.py 
Log Message:
Adds support for the DBEnv->set_timeout() method.


Index: test_lock.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_lock.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_lock.py	28 Jan 2003 17:20:44 -0000	1.3
--- test_lock.py	27 Mar 2003 17:23:29 -0000	1.4
***************
*** 98,102 ****
              t.join()
  
! 
  
      def theThread(self, sleepTime, lockType):
--- 98,108 ----
              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):