summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2008-09-03 22:07:33 (GMT)
committerJesus Cea <jcea@jcea.es>2008-09-03 22:07:33 (GMT)
commita64072f994d8ddc748948e0b8376e69881cf26ac (patch)
treede158530d9b3ef77b3330f40980154ce5077df89 /Lib/bsddb
parent2ab344428449792e293c0c4d276fc66d26e919e5 (diff)
downloadcpython-a64072f994d8ddc748948e0b8376e69881cf26ac.zip
cpython-a64072f994d8ddc748948e0b8376e69881cf26ac.tar.gz
cpython-a64072f994d8ddc748948e0b8376e69881cf26ac.tar.bz2
Python3.0 bsddb testsuite compatibility improvements
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_all.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/bsddb/test/test_all.py b/Lib/bsddb/test/test_all.py
index 9a4d3ee..559d41b 100644
--- a/Lib/bsddb/test/test_all.py
+++ b/Lib/bsddb/test/test_all.py
@@ -67,6 +67,10 @@ if sys.version_info[0] >= 3 :
v = self._dbcursor.next_dup()
return self._fix(v)
+ def next_nodup(self) :
+ v = self._dbcursor.next_nodup()
+ return self._fix(v)
+
def put(self, key, value, flags=0, dlen=-1, doff=-1) :
if isinstance(key, str) :
key = bytes(key, charset)