diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2003-05-28 08:26:43 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2003-05-28 08:26:43 (GMT) |
commit | bc6e94a0fadd5913d8e14453f69cc3942f13ccca (patch) | |
tree | e9339f605e732e56958f05cef498af62ad5efd7e /Lib/bsddb | |
parent | 5772513f0f0dfc40f8627227fce10eb2eebed82c (diff) | |
download | cpython-bc6e94a0fadd5913d8e14453f69cc3942f13ccca.zip cpython-bc6e94a0fadd5913d8e14453f69cc3942f13ccca.tar.gz cpython-bc6e94a0fadd5913d8e14453f69cc3942f13ccca.tar.bz2 |
Wrap the cursor functions with dbutils.DeadlockWrap to deal with the
expected DBLockDeadLockErrors.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r-- | Lib/bsddb/test/test_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index 48e8c9a..71b6c30 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 = c.first() + rec = dbutils.DeadlockWrap(c.first) while rec: count += 1 key, data = rec self.assertEqual(self.makeData(key), data) - rec = c.next() + rec = dbutils.DeadlockWrap(c.next) if verbose: print "%s: found %d records" % (name, count) c.close() |