Kaydet (Commit) 5bcf109c authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Fix test_gdbm.

üst 967f1e3b
...@@ -11,13 +11,13 @@ filename = TESTFN ...@@ -11,13 +11,13 @@ filename = TESTFN
g = gdbm.open(filename, 'c') g = gdbm.open(filename, 'c')
verify(g.keys() == []) verify(g.keys() == [])
g['a'] = 'b' g[b'a'] = b'b'
g['12345678910'] = b'019237410982340912840198242' g[b'12345678910'] = b'019237410982340912840198242'
a = g.keys() a = g.keys()
if verbose: if verbose:
print('Test gdbm file keys: ', a) print('Test gdbm file keys: ', a)
'a' in g b'a' in g
g.close() g.close()
try: try:
g['a'] g['a']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment