diff options
author | Guido van Rossum <guido@python.org> | 2007-05-23 20:51:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-23 20:51:02 (GMT) |
commit | 6252e10ed906eb419a75b310f7c0d6696a4eeb46 (patch) | |
tree | b6b46cf0e5d1528d736cde47d1089aefc46bbf05 /Lib/test/test_whichdb.py | |
parent | 517bcfeb6be448f47804900ac75c804d8f70a20e (diff) | |
download | cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.zip cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.tar.gz cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.tar.bz2 |
Make gdbm and dumbdbm use byte strings. Updated their tests.
Diffstat (limited to 'Lib/test/test_whichdb.py')
-rw-r--r-- | Lib/test/test_whichdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_whichdb.py b/Lib/test/test_whichdb.py index f2652c1..6cb5e4f 100644 --- a/Lib/test/test_whichdb.py +++ b/Lib/test/test_whichdb.py @@ -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) |