From e3ea28128091a88df9aebc2ad055efd6c377d0b6 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 21 Jul 2003 23:01:34 +0000 Subject: [PATCH] readerThread(): Add max_retries to both DeadlockWrap() calls. This may cause some tests to fail but it prevents them from hanging. --- Lib/bsddb/test/test_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index 71b6c3087c..cf4237c330 100644 --- a/Lib/bsddb/test/test_thread.py +++ b/Lib/bsddb/test/test_thread.py @@ -267,12 +267,12 @@ class SimpleThreadedBase(BaseThreadedTestCase): for loop in range(5): c = d.cursor() count = 0 - rec = dbutils.DeadlockWrap(c.first) + 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) + rec = dbutils.DeadlockWrap(c.next, max_retries=10) if verbose: print "%s: found %d records" % (name, count) c.close() -- 2.50.1