summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_bsddb.py3
-rwxr-xr-xLib/test/test_dbm.py3
-rwxr-xr-xLib/test/test_gdbm.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py
index b59a4e0..192c6e2 100755
--- a/Lib/test/test_bsddb.py
+++ b/Lib/test/test_bsddb.py
@@ -6,7 +6,7 @@
import os
import bsddb
import tempfile
-from test_support import verbose
+from test_support import verbose, verify
def test(openmethod, what):
@@ -15,6 +15,7 @@ def test(openmethod, what):
fname = tempfile.mktemp()
f = openmethod(fname, 'c')
+ verify(f.keys() == [])
if verbose:
print 'creation...'
f['0'] = ''
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
index 94949cf..b74194a 100755
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -4,11 +4,12 @@
"""
import dbm
from dbm import error
-from test_support import verbose
+from test_support import verbose, verify
filename = '/tmp/delete_me'
d = dbm.open(filename, 'c')
+verify(d.keys() == [])
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py
index 67c67eb..d364016 100755
--- a/Lib/test/test_gdbm.py
+++ b/Lib/test/test_gdbm.py
@@ -5,11 +5,12 @@
import gdbm
from gdbm import error
-from test_support import verbose, TestFailed
+from test_support import verbose, verify, TestFailed
filename= '/tmp/delete_me'
g = gdbm.open(filename, 'c')
+verify(g.keys() == [])
g['a'] = 'b'
g['12345678910'] = '019237410982340912840198242'
a = g.keys()