From: Barry Warsaw Date: Mon, 21 Jul 2003 23:01:34 +0000 (+0000) Subject: readerThread(): Add max_retries to both DeadlockWrap() calls. This X-Git-Tag: v2.3c2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3ea28128091a88df9aebc2ad055efd6c377d0b6;p=thirdparty%2FPython%2Fcpython.git readerThread(): Add max_retries to both DeadlockWrap() calls. This may cause some tests to fail but it prevents them from hanging. --- diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index 71b6c3087c2e..cf4237c33039 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()