summaryrefslogtreecommitdiff
path: root/Lib/bsddb/test/test_basics.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2004-02-26 10:07:14 +0000
committerGregory P. Smith <greg@mad-scientist.com>2004-02-26 10:07:14 +0000
commita7befda8d80d759cb88ef6732581860166ecf438 (patch)
tree0d67c57f5b0c9bf097378dd349f1100f2ca6f89b /Lib/bsddb/test/test_basics.py
parent904de5b7343994a7fcb2941ce094ab60da68afed (diff)
downloadcpython-git-a7befda8d80d759cb88ef6732581860166ecf438.tar.gz
Fixes SF bug # 778421
* Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
Diffstat (limited to 'Lib/bsddb/test/test_basics.py')
-rw-r--r--Lib/bsddb/test/test_basics.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py
index da7e18f8ae..09571ab26e 100644
--- a/Lib/bsddb/test/test_basics.py
+++ b/Lib/bsddb/test/test_basics.py
@@ -385,7 +385,12 @@ class BasicTestCase(unittest.TestCase):
rec = c.set_range('011',dlen=0,doff=0)
if verbose:
print "searched (partial) for '011', found: ", rec
- if rec[1] != '': set.fail('expected empty data portion')
+ if rec[1] != '': self.fail('expected empty data portion')
+
+ ev = c.set_range('empty value')
+ if verbose:
+ print "search for 'empty value' returned", ev
+ if ev[1] != '': self.fail('empty value lookup failed')
c.set('0499')
c.delete()