diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-08-07 05:37:39 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-08-07 05:37:39 (GMT) |
commit | e6568694bbf4702216292588e6438b30ea0b0f61 (patch) | |
tree | eb3569f0a499753a8e3184a1b9f95f019e410b9a /Lib/test/test_whichdb.py | |
parent | 45d569b8232d19b0f6bd1385e8fb624f310d230e (diff) | |
download | cpython-e6568694bbf4702216292588e6438b30ea0b0f61.zip cpython-e6568694bbf4702216292588e6438b30ea0b0f61.tar.gz cpython-e6568694bbf4702216292588e6438b30ea0b0f61.tar.bz2 |
Change dumbdbm to use bytes keys.
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 6cb5e4f..675507a 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"] = b"1" + f[b"1"] = b"1" f.close() self.assertEqual(name, whichdb.whichdb(_fname)) setattr(WhichDBTestCase,"test_whichdb_%s" % name, test_whichdb_name) |