From: Guido van Rossum Date: Thu, 8 Mar 2007 01:17:51 +0000 (+0000) Subject: Fix another unittest that broke due to dict views (more precisely, due X-Git-Tag: v3.0a1~1127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49dc35ba730a2676a5a373fc50c05f3fb4feaf3d;p=thirdparty%2FPython%2Fcpython.git Fix another unittest that broke due to dict views (more precisely, due to the cowboy way they are currently hacked in). --- diff --git a/Lib/test/test_anydbm.py b/Lib/test/test_anydbm.py index 46d46d961ac2..f98035424634 100644 --- a/Lib/test/test_anydbm.py +++ b/Lib/test/test_anydbm.py @@ -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)