]> granicus.if.org Git - python/commitdiff
Fix another unittest that broke due to dict views (more precisely, due
authorGuido van Rossum <guido@python.org>
Thu, 8 Mar 2007 01:17:51 +0000 (01:17 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Mar 2007 01:17:51 +0000 (01:17 +0000)
to the cowboy way they are currently hacked in).

Lib/test/test_anydbm.py

index 46d46d961ac2215310b636b7869ca14fb7643d73..f98035424634fd56cf9b91f2bd7da084a045936d 100644 (file)
@@ -35,7 +35,7 @@ class AnyDBMTestCase(unittest.TestCase):
 
     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)