MCPcopy Index your code
hub / github.com/RustPython/RustPython / init_db

Method init_db

Lib/test/test_dbm_dumb.py:160–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.assertEqual(self._dict[key], f[key])
159
160 def init_db(self):
161 with contextlib.closing(dumbdbm.open(_fname, 'n')) as f:
162 for k in self._dict:
163 f[k] = self._dict[k]
164
165 def keys_helper(self, f):
166 keys = sorted(f.keys())

Callers 5

test_dumbdbm_readMethod · 0.95
test_dumbdbm_keysMethod · 0.95
test_str_readMethod · 0.95

Calls 2

closingMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected