diff options
author | Guido van Rossum <guido@python.org> | 2007-05-23 20:51:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-23 20:51:02 (GMT) |
commit | 6252e10ed906eb419a75b310f7c0d6696a4eeb46 (patch) | |
tree | b6b46cf0e5d1528d736cde47d1089aefc46bbf05 /Lib/test/test_anydbm.py | |
parent | 517bcfeb6be448f47804900ac75c804d8f70a20e (diff) | |
download | cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.zip cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.tar.gz cpython-6252e10ed906eb419a75b310f7c0d6696a4eeb46.tar.bz2 |
Make gdbm and dumbdbm use byte strings. Updated their tests.
Diffstat (limited to 'Lib/test/test_anydbm.py')
-rw-r--r-- | Lib/test/test_anydbm.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_anydbm.py b/Lib/test/test_anydbm.py index f980354..f5eae42 100644 --- a/Lib/test/test_anydbm.py +++ b/Lib/test/test_anydbm.py @@ -21,13 +21,13 @@ def _delete_files(): pass class AnyDBMTestCase(unittest.TestCase): - _dict = {'0': '', - 'a': 'Python:', - 'b': 'Programming', - 'c': 'the', - 'd': 'way', - 'f': 'Guido', - 'g': 'intended' + _dict = {'0': b'', + 'a': b'Python:', + 'b': b'Programming', + 'c': b'the', + 'd': b'way', + 'f': b'Guido', + 'g': b'intended', } def __init__(self, *args): @@ -44,7 +44,7 @@ class AnyDBMTestCase(unittest.TestCase): def test_anydbm_modification(self): self.init_db() f = anydbm.open(_fname, 'c') - self._dict['g'] = f['g'] = "indented" + self._dict['g'] = f['g'] = b"indented" self.read_helper(f) f.close() |