diff options
author | Guido van Rossum <guido@python.org> | 2007-08-14 15:42:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-14 15:42:45 (GMT) |
commit | 956e359579abf3a5fd88783ee625c2e0ca30bf60 (patch) | |
tree | 9fdd8898f9ae6fdd72f439c6d3307085ab11ab2e /Lib | |
parent | 5bcf109c735b2649ae762f9df6c8d1dfcb20a25b (diff) | |
download | cpython-956e359579abf3a5fd88783ee625c2e0ca30bf60.zip cpython-956e359579abf3a5fd88783ee625c2e0ca30bf60.tar.gz cpython-956e359579abf3a5fd88783ee625c2e0ca30bf60.tar.bz2 |
The dbm module should use bytes for keys. This makes test_shelve pass.
Diffstat (limited to 'Lib')
-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 ebe37b4..88b0bf6 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()) |