From f6e47ad4bd12ffa633d51071520722be32fb252d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 22 Mar 2001 00:40:23 +0000 Subject: Check that f.keys() == [] right after creation -- this prevents bugs like the one I just fixed to come back and haunt us. --- Lib/test/test_gdbm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_gdbm.py') diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py index 67c67eb6e7..d3640160c4 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() -- cgit v1.2.1