diff options
author | Guido van Rossum <guido@python.org> | 2007-08-14 15:42:45 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-14 15:42:45 +0000 |
commit | 37859310afb0c564f781d995faa974986bac00f2 (patch) | |
tree | a3d3e1425dbf356c7101303ce763b76d073d24a3 /Lib/test | |
parent | e7f2480a92af72aec7d444fc9565a3dd22a93d86 (diff) | |
download | cpython-37859310afb0c564f781d995faa974986bac00f2.tar.gz |
The dbm module should use bytes for keys. This makes test_shelve pass.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/test_dbm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py index ebe37b4ae5..88b0bf6cc7 100755 --- a/Lib/test/test_dbm.py +++ b/Lib/test/test_dbm.py @@ -26,10 +26,10 @@ def cleanup(): def test_keys(): d = dbm.open(filename, 'c') verify(d.keys() == []) - d['a'] = 'b' - d['12345678910'] = '019237410982340912840198242' + d[b'a'] = b'b' + d[b'12345678910'] = b'019237410982340912840198242' d.keys() - if 'a' in d: + if b'a' in d: if verbose: print('Test dbm keys: ', d.keys()) |