summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-07-21 23:01:34 (GMT)
committerBarry Warsaw <barry@python.org>2003-07-21 23:01:34 (GMT)
commite3ea28128091a88df9aebc2ad055efd6c377d0b6 (patch)
tree1b0ccb16f9f1f3cf53fb958321db8616fd9cdecc /Lib/bsddb/test
parent40b2e839246aa74f08eea1c2abb60e5ca93ecab0 (diff)
downloadcpython-e3ea28128091a88df9aebc2ad055efd6c377d0b6.zip
cpython-e3ea28128091a88df9aebc2ad055efd6c377d0b6.tar.gz
cpython-e3ea28128091a88df9aebc2ad055efd6c377d0b6.tar.bz2
readerThread(): Add max_retries to both DeadlockWrap() calls. This
may cause some tests to fail but it prevents them from hanging.
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r--Lib/bsddb/test/test_thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py
index 71b6c30..cf4237c 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()