diff options
author | Guido van Rossum <guido@python.org> | 2001-03-22 00:40:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-22 00:40:23 (GMT) |
commit | f6e47ad4bd12ffa633d51071520722be32fb252d (patch) | |
tree | c1b1a25d0c2e809102b9010d437879f4afaef65d /Lib/test/test_gdbm.py | |
parent | 4edbc2a54ff79e718fb3d30da5c128fc8b46ccc0 (diff) | |
download | cpython-f6e47ad4bd12ffa633d51071520722be32fb252d.zip cpython-f6e47ad4bd12ffa633d51071520722be32fb252d.tar.gz cpython-f6e47ad4bd12ffa633d51071520722be32fb252d.tar.bz2 |
Check that f.keys() == [] right after creation -- this prevents bugs
like the one I just fixed to come back and haunt us.
Diffstat (limited to 'Lib/test/test_gdbm.py')
-rwxr-xr-x | Lib/test/test_gdbm.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |