[Python-3000-checkins] r54216 - python/branches/p3yk/Lib/test/test_anydbm.py

guido.van.rossum python-3000-checkins at python.org
Thu Mar 8 02:17:52 CET 2007


Author: guido.van.rossum
Date: Thu Mar  8 02:17:51 2007
New Revision: 54216

Modified:
   python/branches/p3yk/Lib/test/test_anydbm.py
Log:
Fix another unittest that broke due to dict views (more precisely, due
to the cowboy way they are currently hacked in).


Modified: python/branches/p3yk/Lib/test/test_anydbm.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_anydbm.py	(original)
+++ python/branches/p3yk/Lib/test/test_anydbm.py	Thu Mar  8 02:17:51 2007
@@ -35,7 +35,7 @@
 
     def test_anydbm_creation(self):
         f = anydbm.open(_fname, 'c')
-        self.assertEqual(f.keys(), [])
+        self.assertEqual(list(f.keys()), [])
         for key in self._dict:
             f[key] = self._dict[key]
         self.read_helper(f)


More information about the Python-3000-checkins mailing list