summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-14 15:42:45 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-14 15:42:45 (GMT)
commit956e359579abf3a5fd88783ee625c2e0ca30bf60 (patch)
tree9fdd8898f9ae6fdd72f439c6d3307085ab11ab2e /Lib
parent5bcf109c735b2649ae762f9df6c8d1dfcb20a25b (diff)
downloadcpython-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-xLib/test/test_dbm.py6
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())