Check that f.keys() == [] right after creation -- this prevents bugs
like the one I just fixed to come back and haunt us.
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 @@
fname = tempfile.mktemp()
f = openmethod(fname, 'c')
+ verify(f.keys() == [])
if verbose:
print 'creation...'
f['0'] = ''