[Python-3000-checkins] r57010 - python/branches/py3k/Lib/test/test_gdbm.py

martin.v.loewis python-3000-checkins at python.org
Tue Aug 14 11:24:24 CEST 2007


Author: martin.v.loewis
Date: Tue Aug 14 11:24:24 2007
New Revision: 57010

Modified:
   python/branches/py3k/Lib/test/test_gdbm.py
Log:
Fix test_gdbm.


Modified: python/branches/py3k/Lib/test/test_gdbm.py
==============================================================================
--- python/branches/py3k/Lib/test/test_gdbm.py	(original)
+++ python/branches/py3k/Lib/test/test_gdbm.py	Tue Aug 14 11:24:24 2007
@@ -11,13 +11,13 @@
 
 g = gdbm.open(filename, 'c')
 verify(g.keys() == [])
-g['a'] = 'b'
-g['12345678910'] = b'019237410982340912840198242'
+g[b'a'] = b'b'
+g[b'12345678910'] = b'019237410982340912840198242'
 a = g.keys()
 if verbose:
     print('Test gdbm file keys: ', a)
 
-'a' in g
+b'a' in g
 g.close()
 try:
     g['a']


More information about the Python-3000-checkins mailing list