[Python-checkins] python/dist/src/Lib/bsddb/test test_thread.py,1.6,1.7
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Mon, 21 Jul 2003 16:01:36 -0700
Update of /cvsroot/python/python/dist/src/Lib/bsddb/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28579
Modified Files:
test_thread.py
Log Message:
readerThread(): Add max_retries to both DeadlockWrap() calls. This
may cause some tests to fail but it prevents them from hanging.
Index: test_thread.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_thread.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_thread.py 28 May 2003 08:26:43 -0000 1.6
--- test_thread.py 21 Jul 2003 23:01:34 -0000 1.7
***************
*** 268,277 ****
c = d.cursor()
count = 0
! rec = dbutils.DeadlockWrap(c.first)
while rec:
count += 1
key, data = rec
self.assertEqual(self.makeData(key), data)
! rec = dbutils.DeadlockWrap(c.next)
if verbose:
print "%s: found %d records" % (name, count)
--- 268,277 ----
c = d.cursor()
count = 0
! rec = dbutils.DeadlockWrap(c.first, max_retries=10)
while rec:
count += 1
key, data = rec
self.assertEqual(self.makeData(key), data)
! rec = dbutils.DeadlockWrap(c.next, max_retries=10)
if verbose:
print "%s: found %d records" % (name, count)