summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-14 15:42:45 +0000
committerGuido van Rossum <guido@python.org>2007-08-14 15:42:45 +0000
commit37859310afb0c564f781d995faa974986bac00f2 (patch)
treea3d3e1425dbf356c7101303ce763b76d073d24a3 /Lib/test
parente7f2480a92af72aec7d444fc9565a3dd22a93d86 (diff)
downloadcpython-37859310afb0c564f781d995faa974986bac00f2.tar.gz
The dbm module should use bytes for keys. This makes test_shelve pass.
Diffstat (limited to 'Lib/test')
-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 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())