mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Make gdbm and dumbdbm use byte strings. Updated their tests.
This commit is contained in:
parent
517bcfeb6b
commit
6252e10ed9
7 changed files with 68 additions and 61 deletions
|
@ -51,7 +51,7 @@ for name in anydbm._names:
|
|||
self.assertEqual(name, whichdb.whichdb(_fname))
|
||||
# Now add a key
|
||||
f = mod.open(_fname, 'w')
|
||||
f["1"] = "1"
|
||||
f["1"] = b"1"
|
||||
f.close()
|
||||
self.assertEqual(name, whichdb.whichdb(_fname))
|
||||
setattr(WhichDBTestCase,"test_whichdb_%s" % name, test_whichdb_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue