mirror of https://github.com/python/cpython
Fix another unittest that broke due to dict views (more precisely, due
to the cowboy way they are currently hacked in).
This commit is contained in:
parent
de3bc7c565
commit
49dc35ba73
|
@ -35,7 +35,7 @@ class AnyDBMTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def test_anydbm_creation(self):
|
def test_anydbm_creation(self):
|
||||||
f = anydbm.open(_fname, 'c')
|
f = anydbm.open(_fname, 'c')
|
||||||
self.assertEqual(f.keys(), [])
|
self.assertEqual(list(f.keys()), [])
|
||||||
for key in self._dict:
|
for key in self._dict:
|
||||||
f[key] = self._dict[key]
|
f[key] = self._dict[key]
|
||||||
self.read_helper(f)
|
self.read_helper(f)
|
||||||
|
|
Loading…
Reference in New Issue